2.3.1 #57
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 plugin | |
on: | |
push: | |
tags: | |
- v[0-9]+.[0-9]+.[0-9]+ | |
jobs: | |
publish-npm: | |
runs-on: ubuntu-latest | |
if: ${{ github.ref != 'refs/heads/main' }} | |
steps: | |
- uses: actions/checkout@v2 | |
# setup node env | |
- name: Use Node.js 18.16.0 | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 18.16.0 | |
registry-url: 'https://registry.npmjs.org' | |
# install node_modules | |
- name: Install dependencies | |
run: npm install | |
# publish to npm | |
- name: Publish package | |
run: npm publish --ignore-scripts --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_GUIDESMITHS }} |