Skip to content

forcing version bump #17

forcing version bump

forcing version bump #17

Workflow file for this run

name: "publish npm"
on: push
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: node
uses: actions/setup-node@v2
with:
node-version: 14
registry-url: https://registry.npmjs.org
- name: Set Git identity for version bump
run: |
git config user.email "michael.denton@jet2.com"
git config user.name "Michael"
- name: Set version in package.json
run: |
echo '{"version": "0.0.3"}' > my-package/package.json
- name: Print package.json Before Bump
run: cat my-package/package.json
- name: Bump version
run: npm version patch --force
- name: Print package.json After Bump
run: cat my-package/package.json
- name: publish
run: npm publish --access public
working-directory: my-package
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}