Skip to content

9.2.2

9.2.2 #84

Workflow file for this run

name: Release
on:
release:
types: [published]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 20.x
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Copy README
run: |
cp README.md ./megalodon/
cp LICENSE.txt ./megalodon/
- name: Install dependencies
run: |
yarn install
- name: Build
run: |
yarn workspace megalodon run build
# refs: https://github.com/actions/setup-node/issues/942#issuecomment-1920476219
- name: Authentication
run: |
echo npmAuthToken: "$NODE_AUTH_TOKEN" >> ./.yarnrc.yml
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Publish
run: |
yarn workspace megalodon npm publish