Skip to content

Commit

Permalink
feat: github action to publish on npm
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Esteban committed Oct 18, 2021
1 parent 947f529 commit af134b7
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/publish-plugin.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish plugin
on:
release:
types: [published]
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build on Node.js using 14.17.6
uses: actions/setup-node@v2
with:
node-version: 14.x
registry-url: 'https://registry.npmjs.org'
- name: Run npm install ci
run: npm ci --only=production
- name: Publish package
run: npm publish --ignore-scripts --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_GUIDESMITHS }}

0 comments on commit af134b7

Please sign in to comment.