2023-04-21 16:06:21 +00:00
|
|
|
name: (Re)Publish public packages manually
|
|
|
|
# This only attempts to publish the public packages to npm.
|
|
|
|
# It does not bump the version, it does not update the changelogs, it does not create a github release.
|
|
|
|
|
|
|
|
# Package publishing is manually triggered on github actions dashboard
|
|
|
|
on: workflow_dispatch
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
deploy:
|
|
|
|
name: '(Re)Publish public packages manually'
|
|
|
|
environment: npm deploy
|
|
|
|
timeout-minutes: 15
|
2023-04-21 16:18:25 +00:00
|
|
|
runs-on: ubuntu-latest-16-cores-open
|
2023-04-21 16:06:21 +00:00
|
|
|
|
|
|
|
steps:
|
2023-07-07 15:32:08 +00:00
|
|
|
- name: Check out code
|
2023-04-21 16:06:21 +00:00
|
|
|
uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Setup Node.js environment
|
|
|
|
uses: actions/setup-node@v3
|
|
|
|
with:
|
2023-12-12 11:36:52 +00:00
|
|
|
node-version: 18.18.2
|
2023-04-21 16:06:21 +00:00
|
|
|
cache: 'yarn'
|
2023-04-25 10:17:06 +00:00
|
|
|
cache-dependency-path: 'public-yarn.lock'
|
2023-04-21 16:06:21 +00:00
|
|
|
|
|
|
|
- name: Enable corepack
|
|
|
|
run: corepack enable
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: yarn
|
|
|
|
|
|
|
|
- name: Publish
|
|
|
|
run: yarn tsx ./scripts/publish-manual.ts
|
|
|
|
env:
|
2023-05-09 13:25:56 +00:00
|
|
|
GH_TOKEN: ${{ github.token }}
|
2023-04-21 16:06:21 +00:00
|
|
|
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|