Skip to content

Publish

Publish #20

Workflow file for this run

name: Publish
on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
name: Use Node.js 15.x
with:
node-version: '15.x'
registry-url: 'https://npm.pkg.github.com'
scope: '@whatever-company'
- run: yarn install --frozen-lockfile
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
- run: yarn lint
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}