Skip to content

Release & Publish to NPM #4

Release & Publish to NPM

Release & Publish to NPM #4

Workflow file for this run

name: Release & Publish to NPM
on: workflow_dispatch
jobs:
release:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
- name: Install the dependencies
run: yarn install
- name: Initialize the NPM config
run: yarn config set //registry.npmjs.org/:_authToken $NPM_TOKEN
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Initialize Git user
run: |
git config --global user.email "[email protected]"
git config --global user.name "Release Workflow"
- name: Log git status
run: git status
- name: Run release
run: yarn release --ci
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}