Skip to content

Commit

Permalink
Merge pull request #1376 from authts/chore-1
Browse files Browse the repository at this point in the history
use node 18.x, prepare publish to previous tag
  • Loading branch information
pamapa authored Oct 4, 2024
2 parents 0fbc014 + 29f3803 commit 446562c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI

on:
push:
branches: [main]
branches: [release/v2]
pull_request:

jobs:
Expand All @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 18.x
cache: npm

- name: Cache incremental builds
Expand All @@ -25,7 +25,7 @@ jobs:
key: build-${{ github.head_ref }}-${{ github.sha }}
restore-keys: |
build-${{ github.head_ref }}-
build-refs/heads/main-
build-refs/heads/release/v2-
- run: npm ci
- run: npm pack --dry-run
Expand Down Expand Up @@ -55,7 +55,7 @@ jobs:
key: test-${{ github.head_ref }}-${{ github.sha }}
restore-keys: |
test-${{ github.head_ref }}-
test-refs/heads/main-
test-refs/heads/release/v2-
- run: npm ci
- run: npm run lint
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: 16.x
node-version: 18.x
cache: npm
registry-url: https://registry.npmjs.org

- run: npm ci
- run: npm publish
- run: npm publish --tag previous
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 446562c

Please sign in to comment.