Skip to content

Publish

Publish #4

Workflow file for this run

name: Publish
on:
workflow_dispatch:
inputs:
version:
required: true
type: string
jobs:
publish:
if: github.ref == 'refs/heads/master'
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/[email protected]
with:
token: ${{ secrets.pat }}
- name: Install NPM Dependencies
uses: bahmutov/[email protected]
- name: Publish
run: |
git config user.name "GitHub Actions"
git config user.email "[email protected]"
echo "//registry.npmjs.org/:_authToken=${{ secrets.npm_token }}" > .npmrc
npm version ${{ inputs.version }}
npm publish
git push
git push --tags