Skip to content

1.0.3

1.0.3 #112

Workflow file for this run

name: Build
on: push
jobs:
build:
runs-on: ubuntu-latest
permissions: write-all
steps:
- name: Checkout πŸ›ŽοΈ
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup πŸ”Œ
uses: actions/[email protected]
with:
node-version: 14.x
registry-url: https://registry.npmjs.org/
- name: Build πŸ”§
run: |
npm ci
npm test
- name: Publish πŸš€
if: startsWith(github.ref, 'refs/tags/')
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
- name: Publish to GitHub πŸš€
if: startsWith(github.ref, 'refs/tags/')
run: |
npm set //npm.pkg.github.com/:_authToken $GITHUB_TOKEN
npm publish --access public --@moccu:registry=https://npm.pkg.github.com
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}