diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e88fe461..fca6795b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,7 @@ name: CI on: push: - branches: [main] + branches: [release/v2] pull_request: jobs: @@ -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 @@ -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 @@ -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 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b8e5ec07..cf60eb69 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 }}