Skip to content

Release & Publish

Release & Publish #11

Workflow file for this run

name: Release & Publish
on: workflow_dispatch
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout source code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Set Git user
run: |
git config --global user.email "[email protected]"
git config --global user.name "GitHub Release Workflow"
- name: Create NPM config
run: |
npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
env:
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
- name: Run release
run: npm run release --ci
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}