Skip to content

Commit

Permalink
Create publish.yml
Browse files Browse the repository at this point in the history
🏗 added automated publish
  • Loading branch information
valkjsaaa authored Nov 22, 2023
1 parent 1a92aa3 commit c76f9fa
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish to NPM if new version

on:
push:
branches: [main]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "20.9.0"
- run: npm ci
# - run: npm test
- uses: JS-DevTools/npm-publish@v2
with:
token: ${{ secrets.NPM_TOKEN }}
tag: latest

0 comments on commit c76f9fa

Please sign in to comment.