diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e6c70c4ff..1a8ac9fe1 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,9 +1,6 @@ name: Release -on: - push: - branches: - - master +on: workflow_dispatch jobs: release: @@ -14,14 +11,17 @@ jobs: uses: actions/checkout@v3 - name: Setup Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v3 with: - node-version: '16.13.2' + node-version: 'lts/*' + registry-url: 'https://registry.npmjs.org' + env: + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} - name: Install Dependencies run: yarn install -# test and build prior to release + # test and build prior to release - name: Unit Test & Linting run: yarn test @@ -32,4 +32,5 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} run: npx semantic-release