-
Notifications
You must be signed in to change notification settings - Fork 13
39 lines (32 loc) · 933 Bytes
/
publish.yaml
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
38
39
name: publish
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22
registry-url: 'https://registry.npmjs.org'
- uses: pnpm/[email protected]
with:
version: 9.15.3
- uses: actions/cache@v4
id: pnpm-cache
with:
path: |
**/node_modules
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- if: steps.pnpm-cache.outputs.cache-hit != 'true'
run: pnpm install
- run: pnpm run lint
- run: pnpm run test
- run: pnpm run build
- run: cp ./README.md ./packages/text-vide/README.md && cd ./packages/text-vide && npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}