Skip to content

Merge branch 'main' of github.com:solacecommunity/solace-data-generator #7

Merge branch 'main' of github.com:solacecommunity/solace-data-generator

Merge branch 'main' of github.com:solacecommunity/solace-data-generator #7

Workflow file for this run

name: Publish npm
on:
push:
branches:
- main
jobs:
publish:
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: Configure npm authentication
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
run: echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc
- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
run: npm publish --access public