fix: menu action handling bugs #41
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Package to npmjs | |
on: | |
push: | |
branches: | |
- main | |
merge_group: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
# Setup .npmrc file to publish to npm | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '20.x' | |
registry-url: 'https://registry.npmjs.org' | |
- name: Bump version and push tag | |
uses: TriPSs/conventional-changelog-action@v3 | |
with: | |
github-token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | |
git-message: "change log (release): {version}" | |
preset: "angular" | |
tag-prefix: "v" | |
output-file: "CHANGELOG.md" | |
skip-on-empty: false | |
- name: Deploy to stable => Merge main -> stable | |
run: | | |
git fetch origin stable | |
git checkout stable | |
git merge main | |
git push | |
- name: Build package | |
run: | | |
npm ci --legacy-peer-deps | |
npm run bundle | |
- name: Create release | |
uses: "marvinpinto/action-automatic-releases@latest" | |
with: | |
repo_token: "${{ secrets.PERSONAL_ACCESS_TOKEN }}" | |
automatic_release_tag: "latest" | |
prerelease: false | |
files: | | |
LICENSE.txt | |
CHANGELOG.md | |
dist/* | |
- name: Publish package to npm | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
npm publish |