Skip to content

Commit

Permalink
Allow release from main
Browse files Browse the repository at this point in the history
  • Loading branch information
chgeo committed Dec 4, 2023
1 parent 8d26473 commit e3d09ff
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
push:
branches: [ release ]

permissions:
contents: write

jobs:

publish-npm:
Expand All @@ -23,11 +26,16 @@ jobs:
- name: get-version
id: package-version
uses: martinbeentjes/[email protected]
- name: Parse changelog
id: parse-changelog
uses: schwma/[email protected]
with:
version: '${{ steps.package-version.outputs.current-version }}'
- name: Create a GitHub release
uses: ncipollo/release-action@v1
with:
tag: "v${{ steps.package-version.outputs.current-version }}"
# body: changelog...
tag: 'v${{ steps.package-version.outputs.current-version }}'
body: '${{ steps.parse-changelog.outputs.body }}'
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 comments on commit e3d09ff

Please sign in to comment.