-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (48 loc) · 1.63 KB
/
release-please.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
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
command: manifest
# build if release was created
- uses: actions/checkout@v3
if: ${{ steps.release.outputs.releases_created }}
- name: Setup node
uses: actions/setup-node@v3
if: ${{ steps.release.outputs.releases_created }}
with:
node-version: '18.15.0'
registry-url: 'https://registry.npmjs.org'
- name: Set up pnpm
uses: pnpm/action-setup@v2
if: ${{ steps.release.outputs.releases_created }}
with:
version: 8.1.0
run_install: |
- recursive: true
args: [--frozen-lockfile]
# build and deploy gh pages for simpai release
- run: pnpm build
if: ${{ steps.release.outputs['packages/simpai--release_created'] }}
- name: Deploy
if: ${{ steps.release.outputs['packages/simpai--release_created'] }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./packages/simpai/build
# build and publish npm package for other releases
- name: Publish
if: ${{ steps.release.outputs.releases_created && !steps.release.outputs['packages/simpai--release_created'] }}
run: pnpm publish -r --no-git-checks --filter=!simpai --filter=!sims-2-tools
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}