Skip to content

Commit

Permalink
chore: release {BRANCH_SLUG}-{SHORT_SHA}
Browse files Browse the repository at this point in the history
  • Loading branch information
lebmouse committed Jul 15, 2024
1 parent 1d93714 commit fbc8338
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/package-tag-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ jobs:
key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-
- if: steps.pnpm-cache.outputs.cache-hit != 'true'
run: pnpm install --no-frozen-lockfile

Expand All @@ -38,8 +39,15 @@ jobs:
echo "BRANCH_SLUG=${BRANCH_SLUG}" >> $GITHUB_OUTPUT
echo "SHORT_SHA=${SHORT_SHA}" >> $GITHUB_OUTPUT
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
tag: ${{ steps.tag-meta.outputs.BRANCH_SLUG }}-${{ steps.tag-meta.outputs.SHORT_SHA }}
- name: Publish Dev Tag
run: |
rm -rf src .husky .github .storybook .prettierrc .eslint.config.js pnpm-lock.yaml vercel.json vite.config.js
git add .
git commit -m "chore: release ${BRANCH_SLUG}-${SHORT_SHA}"
git tag -a "${BRANCH_SLUG}-${SHORT_SHA}" -m "Release ${BRANCH_SLUG}-${SHORT_SHA}"
git push origin "${BRANCH_SLUG}-${SHORT_SHA}"

0 comments on commit fbc8338

Please sign in to comment.