56595c32cb
* Break the CI steps into separate jobs so they run in parallel and are easier to distinguish * Cache yarn more aggressively * Re-use actions in different jobs
24 lines
783 B
YAML
24 lines
783 B
YAML
name: 'Publish Prerelease'
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
|
uses: actions/setup-node@v3
|
|
with:
|
|
node-version: ${{ matrix.node-version }}
|
|
- uses: ./.github/actions/yarn-nm-install
|
|
- name: Build the Theatre.js packages
|
|
run: yarn build
|
|
- name: Update .yarnrc.yml with the auth config for the npmPublishRegistry
|
|
run: cat .github/.yarnrc.publish.yml >> .yarnrc.yml
|
|
- name: Publish the Theatre.js packages
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
# LATEST_COMMIT_HASH: ${{ github.event.pull_request.head.sha }}
|
|
run: yarn zx scripts/prerelease.mjs
|