manual canary release #11
Workflow file for this run
This file contains hidden or 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: manual canary release | |
env: | |
CI: true | |
PNPM_CACHE_FOLDER: .pnpm-store | |
on: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: ./.github/actions/install | |
- run: pnpm run build-storybook | |
- name: Archive screenshots | |
if: ${{ failure() }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: loki-screenshots | |
path: packages/ui/.loki | |
publish_canary: | |
runs-on: ubuntu-latest | |
needs: [build] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- uses: ./.github/actions/install | |
- run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
# Remove it after monorepo is dead!!! | |
- name: Reset pnpm-lock.yaml | |
run: git restore pnpm-lock.yaml | |
- name: Publish to npm | |
run: pnpm run publish-canary |