Skip to content

Commit

Permalink
Create deploy-npm.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
adamchaboryk authored Jun 13, 2023
1 parent 712fc67 commit b5c3824
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/deploy-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: "Deploy to NPM"

on:
release:
types: [created]

jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup node
uses: actions/setup-node@v3
with:
node-version: 17.x
registry-url: https://registry.npmjs.org
- name: Publish to NPM 📦
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}

0 comments on commit b5c3824

Please sign in to comment.