3.0.1 #11
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish | |
on: | |
release: | |
types: [published] | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it. | |
- name: Checkout Repo | |
id: checkout_repo | |
uses: actions/checkout@v4 | |
# Gets the Node version from .nvmrc and sets it as an environment variable. | |
- name: Set Node Version | |
id: set_node_version | |
run: echo "NODE_VERSION=$(cat .nvmrc)" >> $GITHUB_ENV | |
# Setup Node. | |
- name: Setup Node | |
id: setup_node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
registry-url: 'https://registry.npmjs.org' | |
# Publish public package to NPM. | |
- name: Publish | |
id: publish | |
run: npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |