-
Notifications
You must be signed in to change notification settings - Fork 21
51 lines (47 loc) · 1.64 KB
/
release-corel.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
name: Release Corel
on: workflow_dispatch
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
permissions:
contents: read # for checkout
jobs:
release-corel:
permissions:
contents: read # for checkout
id-token: write # to enable use of OIDC for npm provenance
runs-on: ubuntu-latest
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ vars.TURBO_TEAM }}
# The Live Draft Content API is much faster than the legacy Listen API based approach for loader live mode
PRESENTATION_ENABLE_LIVE_DRAFT_EVENTS: true
steps:
- uses: actions/create-github-app-token@v1
id: generate-token
with:
app-id: ${{ secrets.ECOSPARK_APP_ID }}
private-key: ${{ secrets.ECOSPARK_APP_PRIVATE_KEY }}
- uses: actions/checkout@v4
with:
ref: corel
token: ${{ steps.generate-token.outputs.token }}
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
cache: pnpm
node-version: lts/*
- run: pnpm install --ignore-scripts
- run: pnpm config set '//registry.npmjs.org/:_authToken' "${NODE_AUTH_TOKEN}"
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}
- name: release corel & commit + push the changed versions
env:
NPM_CONFIG_PROVENANCE: true
run: |
pnpm release:corel
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add .
git commit -m "chore(release): publish corel [skip ci]"
git push