update canary dependency #457
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: update canary dependency 6.x | |
on: | |
workflow_dispatch: | |
schedule: | |
# twice peer week | |
- cron: '0 0 * * 1,4' | |
# for now, scheduled, we can enable on push master but not make much sense now | |
push: | |
branches: | |
- main | |
permissions: write-all | |
jobs: | |
prepare: | |
name: Update verdaccio canary dependency | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3 | |
- name: Use Node | |
uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # v3 | |
with: | |
node-version-file: '.nvmrc' | |
- name: corepack | |
run: corepack enable | |
- name: pnpm enable | |
run: corepack prepare pnpm@latest-8 --activate | |
- name: Set up .npmrc | |
run: | | |
echo "//registry.verdaccio.org/:_authToken=${{ secrets.VERDACCIO_TOKEN }}" > .npmrc | |
- name: registry | |
run: npm config set registry https://registry.verdaccio.org | |
- name: install | |
run: pnpm install | |
- name: update to latest canary | |
run: cd tools/cli-commons && pnpm install verdaccio@canary-6x | |
- name: restore .npmrc | |
run: git checkout .npmrc | |
- name: Commit & Push changes | |
uses: actions-js/push@156f2b10c3aa000c44dbe75ea7018f32ae999772 # tag=v1.4 | |
with: | |
github_token: ${{ secrets.TOKEN_VERDACCIOBOT_V2 }} | |
message: 'chore: updated canary verdaccio' | |
branch: main | |
author_email: [email protected] | |
author_name: verdacciobot |