Skip to content

Commit

Permalink
chore: upgrade CI config
Browse files Browse the repository at this point in the history
  • Loading branch information
alanshaw committed Feb 10, 2025
1 parent 8239e7a commit ceb2f85
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{matrix.node}}
- run: npm install
Expand All @@ -26,10 +26,10 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
node: [16, 18]
node: [20, 22]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{matrix.node}}
- run: npm install
Expand All @@ -39,6 +39,9 @@ jobs:
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
name: Changelog
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
outputs:
releases_created: ${{ steps.tag-release.outputs.releases_created }}
steps:
Expand All @@ -56,14 +59,14 @@ jobs:
- test
- changelog
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
registry-url: https://registry.npmjs.org/
node-version: 16
node-version: 22
- uses: bahmutov/npm-install@v1
- run: npm run build
- name: NPM Publish
- name: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
run: cd dist && npm publish --access=public

0 comments on commit ceb2f85

Please sign in to comment.