Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 5 additions & 10 deletions .github/workflows/beta-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,22 @@ on:
jobs:
beta_release:
runs-on: ubuntu-latest
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v4
with:
node-version: '16.x'
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
cache: 'yarn'

- name: Install dev dependencies
run: yarn install

- name: Setup npm credentials file
run: echo "//registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN" >> .npmrc

- name: Setup git credentials
run: |
git config --global user.name 'Auto Release Bot'
Expand All @@ -39,9 +36,7 @@ jobs:
GITHUB_PR_NUMBER: ${{ github.event.pull_request.number }}

- name: Release a new beta version
run: npm publish --tag beta
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --tag beta --provenance --access public

- uses: actions/github-script@v6
with:
Expand Down
Loading