mirror of
https://github.com/sern-handler/tools
synced 2026-06-06 01:16:59 +00:00
cleanup
This commit is contained in:
7
.github/workflows/publish-dev.yml
vendored
7
.github/workflows/publish-dev.yml
vendored
@@ -18,14 +18,11 @@ jobs:
|
||||
- run: corepack enable
|
||||
- run: yarn
|
||||
- run: yarn config set npmAuthToken ${{ secrets.NPM_TOKEN }}
|
||||
# for every package in the monorepo, publish it to npm
|
||||
- name: Bump Version & Publish
|
||||
run: |
|
||||
# Resolve the tag to be used. "dev" for push events, "pr-{prNumber}" for dispatch events.
|
||||
TAG=$([[ ${{ github.event_name }} == 'push' ]])
|
||||
yarn config set npmAuthToken ${NODE_AUTH_TOKEN}
|
||||
yarn config set npmPublishRegistry "https://registry.yarnpkg.com"
|
||||
yarn workspaces foreach --all -pt bump --preid "${TAG}.$(git rev-parse --verify --short HEAD)"
|
||||
yarn workspaces foreach --all -pt yarn publish --tag ${TAG}
|
||||
yarn workspaces foreach --all -pt bump --preid "dev.$(git rev-parse --verify --short HEAD)"
|
||||
yarn workspaces foreach --all -pt yarn publish --tag dev
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
Reference in New Issue
Block a user