Skip to content

chore(workflow): add github token env #6

chore(workflow): add github token env

chore(workflow): add github token env #6

Workflow file for this run

name: Release
on:
push:
branches:
- beta
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 20
- name: Install dependencies
run: npm ci
- name: Semantic Release
run: npx semantic-release
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Publish to npm with beta tag
run: npm publish --tag beta
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}