Skip to content

fix: error on prompt cancel #6

fix: error on prompt cancel

fix: error on prompt cancel #6

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Node.js Package
on:
push:
branches:
- "main"
paths:
- "src/**.ts"
- "package*.json"
- "rollup.config.js"
- "tsconfig.json"
- ".github/workflows/npm-publish.yml"
jobs:
publish-npm:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v4
with:
version: 9
- name: "Automated Version Bump"
uses: "phips28/gh-action-bump-version@master"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag-prefix: "v"
- run: pnpm i
- run: pnpm build
- run: pnpm publish --no-git-checks --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}