tldraw/.github/workflows/publish-canary.yml

45 lines
1 KiB
YAML
Raw Normal View History

2023-04-21 16:06:21 +00:00
name: Publish Canary Packages
on:
push:
branches: [main]
jobs:
deploy:
name: 'Publish Canary Packages'
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:
- name: tldraw-repo-sync token
id: tldraw-repo-sync
uses: getsentry/action-github-app-token@v2
with:
app_id: ${{ secrets.HUPPY_APP_ID }}
private_key: ${{ secrets.HUPPY_APP_PRIVATE_KEY }}
2023-04-21 16:06:21 +00:00
- name: Check out code
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: 18
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 Canary Packages
run: yarn tsx ./scripts/publish-canary.ts
env:
GH_TOKEN: ${{ github.token }}
2023-04-21 16:06:21 +00:00
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}