2022-05-18 12:09:45 +02:00
|
|
|
name: 'Publish Prerelease'
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
publish:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
2023-02-04 20:23:26 +01:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Use Node.js ${{ matrix.node-version }}
|
2022-05-18 12:09:45 +02:00
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
2023-02-04 20:23:26 +01:00
|
|
|
node-version: ${{ matrix.node-version }}
|
|
|
|
- uses: ./.github/actions/yarn-nm-install
|
2022-07-22 17:19:48 +02:00
|
|
|
- name: Build the Theatre.js packages
|
2022-05-18 12:09:45 +02:00
|
|
|
run: yarn build
|
|
|
|
- name: Update .yarnrc.yml with the auth config for the npmPublishRegistry
|
|
|
|
run: cat .github/.yarnrc.publish.yml >> .yarnrc.yml
|
2022-07-22 17:19:48 +02:00
|
|
|
- name: Publish the Theatre.js packages
|
2022-05-18 12:09:45 +02:00
|
|
|
env:
|
|
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
|
|
# LATEST_COMMIT_HASH: ${{ github.event.pull_request.head.sha }}
|
|
|
|
run: yarn zx scripts/prerelease.mjs
|