Skip to content

ci: setup npm token before install #2

ci: setup npm token before install

ci: setup npm token before install #2

Workflow file for this run

name: Release
on:
push:
branches:
- main
- canary/*
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
uses: ./.github/workflows/test.yml
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
release:
runs-on: ubuntu-latest
needs: test
steps:
- name: Checkout
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup NPM token
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" >> .npmrc
- name: Install
run: yarn install --frozen-lockfile --non-interactive
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_DEPLOY_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: yarn run semantic-release