Skip to content

Commit

Permalink
automate release on tags
Browse files Browse the repository at this point in the history
  • Loading branch information
sebkolind committed May 17, 2024
1 parent 1e27c68 commit f42f150
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Build and Release NPM Package

on:
push:
branches: [main]
create:
tags:
- v*

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: '20'
- run: npm ci
- run: npm run build
# - run: npm test # Soon
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ dist/
project.*
scratch.js
.vscode/
.idea/
.idea/
.secrets

0 comments on commit f42f150

Please sign in to comment.