-
Notifications
You must be signed in to change notification settings - Fork 13
56 lines (52 loc) · 1.44 KB
/
npm-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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Publish NPM Package
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
environment: CI
env:
TENDERLY_ACCESS_KEY: ${{secrets.TENDERLY_ACCESS_KEY}}
TENDERLY_ACCOUNT_NAME: ${{secrets.TENDERLY_ACCOUNT_NAME}}
TENDERLY_PROJECT_NAME: ${{secrets.TENDERLY_PROJECT_NAME}}
TENDERLY_GET_BY_PROJECT_NAME: ${{secrets.TENDERLY_GET_BY_PROJECT_NAME}}
steps:
- uses: actions/checkout@v4
- uses: pnpm/[email protected]
with:
version: 8.15.7
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm lint
- run: pnpm build
- run: pnpm test
publish-npm:
needs: build
runs-on: ubuntu-latest
environment: CI
steps:
- uses: actions/checkout@v4
- uses: pnpm/[email protected]
with:
version: 8.15.7
- uses: actions/setup-node@v4
with:
node-version: lts/*
cache: "pnpm"
- run: pnpm install --frozen-lockfile
- run: pnpm build
- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
with:
publish: pnpm run publish
commit: "chore(release): npm release"
title: "Release"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}