Skip to content

Publish 1.1.0 (@osyrisrblx) #10

Publish 1.1.0 (@osyrisrblx)

Publish 1.1.0 (@osyrisrblx) #10

Workflow file for this run

name: Publish
run-name: Publish ${{ inputs.version }} (@${{ github.actor }})
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