Skip to content

Commit

Permalink
ci: update npm deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
ephrimlawrence committed Feb 26, 2024
1 parent f909629 commit 2e2e060
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .github/workflows/npm-deploy.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Publish Package to npmjs
on:
release:
types: [published]
push:
branches:
- stable
jobs:
build:
runs-on: ubuntu-latest
Expand All @@ -13,6 +14,18 @@ jobs:
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'

- name: Create Release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body_path: CHANGELOG.md
draft: false
prerelease: false

- run: npm ci --legacy-peer-deps
- run: |
npm run bundle
Expand Down

0 comments on commit 2e2e060

Please sign in to comment.