-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (35 loc) · 893 Bytes
/
publish.yml
File metadata and controls
45 lines (35 loc) · 893 Bytes
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
40
41
42
43
44
45
name: Publish
on:
push:
branches: ['main']
jobs:
build:
name: Build & Test & Publish
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: pnpm/action-setup@v2.0.1
with:
version: 8.12.1
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 20.10.0
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
- name: Lint
run: pnpm lint
- name: Test
run: pnpm test
- name: Publish Package
run: npm publish --tolerate-republish --no-fund
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}