Skip to content

Commit

Permalink
chore(actions): add publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
EmanuelJr committed Nov 7, 2021
1 parent 69144a3 commit 2b9de29
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Publish

on: workflow_dispatch

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: "Setup Node.js"
uses: actions/setup-node@v2
with:
node-version: "14.x"
registry-url: "https://registry.npmjs.org"

- name: "Checkout"
uses: actions/checkout@v2

- name: Install dependencies
run: npm install

- name: Compile
run: npm run build

- name: "Publish package"
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 2b9de29

Please sign in to comment.