-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (29 loc) · 964 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
38
39
40
name: Publish packages
on:
push:
branches:
- main
jobs:
publish-npm:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@646cdf48217256a3d0b80361c5a50727664284f2
with:
version: 6.10.0
- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: pnpm i -g @microsoft/rush
- run: rush install
- run: rush build
- run: git config user.email "danfma@gmail.com"
- run: git config user.name "Daniel Ferreira Monteiro Alves"
- run: rush publish --apply --publish --target-branch main --add-commit-details --set-access-level public --ignore-git-hooks
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}