Skip to content

Commit

Permalink
chore: Update package-tag-publish workflow to include dist folder in …
Browse files Browse the repository at this point in the history
…commit
  • Loading branch information
lebmouse committed Jul 15, 2024
1 parent 6325796 commit 40df8c3
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/package-tag-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,24 @@ jobs:
run: |
BRANCH_SLUG=$(echo "${GITHUB_REF#refs/heads/}" | sed 's/\//-/g')
SHORT_SHA=$(echo "${GITHUB_SHA::6}")
echo "BRANCH_SLUG=${BRANCH_SLUG}" >> $GITHUB_OUTPUT
echo "SHORT_SHA=${SHORT_SHA}" >> $GITHUB_OUTPUT
echo "BRANCH_SLUG=${BRANCH_SLUG}" >> "$GITHUB_OUTPUT"
echo "SHORT_SHA=${SHORT_SHA}" >> "$GITHUB_OUTPUT"
- name: Publish Dev Tag
env:
GITHUB_TOKEN: ${{ secrets.WORKFLOW_GH_USER }}
GITHUB_TOKEN: ${{ secrets.WORKFLOW_GH_USER }}
TAG_NAME: "${{ steps.tag-meta.outputs.BRANCH_SLUG }}${{ steps.tag-meta.outputs.SHORT_SHA }}"
run: |
rm -rf src .husky .github .storybook .prettierrc .eslint.config.js pnpm-lock.yaml vercel.json vite.config.js
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
npm version
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}'
git add -f dist
git commit -m "chore: release $TAG_NAME"
git tag -a $TAG_NAME -m "Release $TAG_NAME"
git push origin "TAG_NAME
Expand Down

0 comments on commit 40df8c3

Please sign in to comment.