Skip to content

update canary dependency #495

update canary dependency

update canary dependency #495

Workflow file for this run

---
name: update canary dependency
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 "//rg.verdaccio.org/:_authToken=${{ secrets.VERDACCIO_TOKEN }}" > .npmrc
- name: registry
run: npm config set registry https://rg.verdaccio.org
- name: install
run: pnpm install
- name: update to latest canary
run: cd tools/cli-commons && pnpm install verdaccio@canary-7x
- 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