Skip to content

Commit

Permalink
ci: automate release on tags (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
sebkolind authored May 17, 2024
1 parent b9bfdd9 commit ed5562e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
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 run test
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@ scratch.js
.vscode/
.idea/
coverage/
.secrets

0 comments on commit ed5562e

Please sign in to comment.