From 1fafed5df719115371c229ac853ceddfdb0a8061 Mon Sep 17 00:00:00 2001 From: Izan Gil <66965250+SrIzan10@users.noreply.github.com> Date: Sat, 4 May 2024 16:05:58 +0200 Subject: [PATCH] cleanup --- .github/workflows/publish-dev.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/publish-dev.yml b/.github/workflows/publish-dev.yml index 702b85f..dc96ae1 100644 --- a/.github/workflows/publish-dev.yml +++ b/.github/workflows/publish-dev.yml @@ -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 }} \ No newline at end of file