Skip to content

Commit

Permalink
feat: add release script
Browse files Browse the repository at this point in the history
  • Loading branch information
vandie committed Jul 31, 2022
1 parent aafaaa9 commit 0835f78
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/release-module.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Release Module

on:
release:
types: [created]
jobs:
npm:
runs-on: ubuntu-latest
if: contains(github.ref, 'tags')
steps:
- uses: actions/checkout@v3

- name: Use Node.js 16
uses: actions/setup-node@v3
with:
node-version: '16.x'

- name: Install npm dependencies
run: npm ci

- name: Build package
run: |
npm run build
- name: Publish tag to npm
run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 comments on commit 0835f78

Please sign in to comment.