macOS builders are failing with major version 12 because it's deprecated now https://github.com/actions/runner-images/issues/10721
26 lines
536 B
YAML
26 lines
536 B
YAML
name: Publish Package to npmjs
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
jobs:
|
|
build-release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: 20
|
|
registry-url: 'https://registry.npmjs.org'
|
|
cache: 'yarn'
|
|
|
|
- name: Yarn Install
|
|
run: yarn install --frozen-lockfile
|
|
|
|
- name: Yarn Build
|
|
run: yarn run build
|
|
|
|
- run: npm publish
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|