-
-
Notifications
You must be signed in to change notification settings - Fork 32
37 lines (33 loc) · 873 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Release
on:
release:
types: [published]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js 22.x
uses: actions/setup-node@v4
with:
node-version: '22.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