Skip to content

Bump version on push #16

Bump version on push

Bump version on push #16

Workflow file for this run

name: Publish to npm
on:
push:
branches:
- main
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '14'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm install
- name: Build project
run: npm run build
- name: Bump version
run: |
npm version patch -m "chore: bump version to %s [skip ci]"
git push
git push --tags
- name: Publish to npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}