Skip to content

final fix

final fix #4

Workflow file for this run

name: Publish npm
on:
push:
branches:
- main
jobs:
bump-version:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: '18'
- name: Bump version
id: bump
run: |
git config user.name github-actions
git config user.email [email protected]
npm version patch
echo "New version: $(node -p "require('./package.json').version")"
git push
- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
run: npm publish --access public