Release Corel #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |