Publish dev #2278
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: Publish dev | |
on: | |
schedule: | |
- cron: '0 */12 * * *' | |
workflow_dispatch: | |
inputs: | |
dry_run: | |
type: boolean | |
default: false | |
jobs: | |
npm-publish: | |
name: npm publish | |
runs-on: ubuntu-latest | |
permissions: | |
id-token: write | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
if: github.repository_owner == 'ckohen' | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
ref: 'ci/better-release-test' | |
- name: Install Node.js v20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
registry-url: https://registry.npmjs.org/ | |
- name: Install dependencies | |
uses: ./packages/actions/src/pnpmCache | |
- name: Build dependencies | |
run: pnpm run build | |
- name: Pubish packages | |
uses: ./packages/actions/src/releasePackages | |
with: | |
exclude: 'create-discord-bot,@ckohen/docgen' | |
dry: ${{ inputs.dry_run }} | |
dev: true | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |