-
Notifications
You must be signed in to change notification settings - Fork 115
37 lines (31 loc) · 935 Bytes
/
publish.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
37
name: Publish Package to npmjs
on:
release:
types: [published]
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
- uses: actions/setup-node@v3
with:
node-version: "20.x"
cache: "pnpm"
- name: Install dependencies
run: pnpm install
- name: Build
run: |
pnpm build --filter webcrack
cp README.md packages/webcrack
# https://github.com/pnpm/pnpm/issues/3141#issuecomment-1305563972
- name: Set publishing config
run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
- name: Publish
run: pnpm publish --filter webcrack --no-git-checks