Skip to content

bump "version": "1.0.1" #7

bump "version": "1.0.1"

bump "version": "1.0.1" #7

Workflow file for this run

name: VUIC React - Build and Publish to NPM
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm install
- name: Build
run: npm run build
- name: Bump package version
run: |
git config user.name "github-actions"
git config user.email "[email protected]"
npm version patch -m "Bump version to %s"
git push --follow-tags
if: github.ref == 'refs/heads/main'
- name: Publish to npm
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}