canary release #17
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: canary release | |
on: | |
# Runs every Monday at 1 AM UTC (9:00 AM in Singapore) | |
schedule: | |
- cron: 0 1 * * MON | |
workflow_dispatch: | |
jobs: | |
canary: | |
# prevents this action from running on forks | |
if: github.repository == 'vuejs/core' | |
runs-on: ubuntu-latest | |
environment: Release | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
- name: Set node version to 18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
registry-url: 'https://registry.npmjs.org' | |
cache: 'pnpm' | |
- run: pnpm install | |
- run: pnpm release --canary | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |