Skip to content

Commit

Permalink
ci: 🎡 fix changeset workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
matteovivona committed Oct 15, 2024
1 parent 6dce7be commit 62e2f16
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 11 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/changesets.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ on:
permissions:
contents: read

env:
GH_TOKEN: ${{ secrets.DUCKTORS_PAT }}
GITHUB_TOKEN: ${{ secrets.DUCKTORS_PAT }}
NPM_TOKEN: ${{ secrets.MAGIO_NPM_TOKEN }}

jobs:
release:
name: Changesets
Expand All @@ -19,24 +24,28 @@ jobs:
with:
egress-policy: audit

- uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
name: Checkout
with:
fetch-depth: 0
persist-credentials: false

- name: Use Node.js
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: 20
node-version: 22

- name: Install pnpm
uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
with:
version: 9.12.1
version: 9

- name: Get pnpm store directory
id: pnpm-cache
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
- uses: actions/cache@3624ceb22c1c5a301c8db4169662070a689d9ea8 # v4.1.1
- uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
name: Setup pnpm cache
with:
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
Expand All @@ -51,7 +60,7 @@ jobs:
run: pnpm build

- name: Create Release Pull Request
uses: changesets/action@c8bada60c408975afd1a20b3db81d6eee6789308 # v1.4.9
uses: changesets/action@3de3850952bec538fde60aac71731376e57b9b57 # v1.4.8
with:
publish: pnpm release
createGithubReleases: true
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
name: Build
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
node-version: [20.x, 22.x]
# os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-latest, macos-latest]
steps:
Expand Down Expand Up @@ -99,4 +99,4 @@ jobs:
run: pnpm install --frozen-lockfile

- name: Lint code
run: pnpm lint
run: pnpm lint
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
name: Coverage
strategy:
matrix:
node-version: [18.x, 20.x, 22.x]
node-version: [20.x, 22.x]
# os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-latest, macos-latest]
steps:
Expand Down Expand Up @@ -72,4 +72,4 @@ jobs:
env:
CC_TEST_REPORTER_ID: ${{ secrets.CODECLIMATE_TEST_REPORTER_ID }}
with:
coverageLocations: ${{github.workspace}}/coverage/lcov.info:lcov
coverageLocations: ${{github.workspace}}/coverage/lcov.info:lcov

0 comments on commit 62e2f16

Please sign in to comment.