-
Notifications
You must be signed in to change notification settings - Fork 4
39 lines (32 loc) · 1.14 KB
/
release-package.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
name: Publish Packages
on:
pull_request:
types:
- closed
jobs:
publish-gpr:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
name: Checkout
- uses: actions/setup-node@v4
name: Install Node.js
with:
cache-dependency-path: '**/config/rush/pnpm-lock.yaml'
registry-url: https://registry.npmjs.org/
- name: Set Git User
run: |
git config user.email "github-actions[bot]@users.noreply.github.com"
git config user.name "github-actions[bot]"
- name: Install Rush
run: node common/scripts/install-run-rush.js install
- name: Bump Version for Packages
run: node common/scripts/install-run-rush.js version --bump
- name: Publish Packages via Rush
run: node common/scripts/install-run-rush.js publish --apply --publish --include-all --version-policy stonecrop --target-branch development --add-commit-details --set-access-level=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}