Skip to content

Commit

Permalink
release: test
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvxd committed Dec 13, 2023
1 parent f8e4608 commit 077f694
Showing 1 changed file with 19 additions and 10 deletions.
29 changes: 19 additions & 10 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
branches:
- "main"
- "releases/**"

permissions:
contents: write
jobs:
tag-and-publish-to-npm:
runs-on: ubuntu-latest
Expand All @@ -14,11 +15,11 @@ jobs:
- name: Extract version
shell: bash
run: echo "TAG_NAME=$(git log -1 --oneline --pretty=%B | sed 's/release:\ //g')" >> $GITHUB_ENV
- name: Tag commit
uses: tvdias/[email protected]
with:
repo-token: "${{ secrets.GH_TOKEN }}"
tag: ${{ env.TAG_NAME }}
# - name: Tag commit
# uses: tvdias/[email protected]
# with:
# repo-token: "${{ secrets.GH_TOKEN }}"
# tag: ${{ env.TAG_NAME }}

- name: Setup Node.js
uses: actions/setup-node@v3
Expand All @@ -29,9 +30,17 @@ jobs:
- name: Install dependencies
run: yarn

- name: Publish all packages
run: ./scripts/publish.sh latest
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# - name: Publish all packages
# run: ./scripts/publish.sh latest
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

# Trigger a new build to ensure Vercel creates a distinct release branch, rather than reusing latest
- name: Triggering new build
run: |
git config --global user.name 'chrisvxd'
git config --global user.email '[email protected]'
git commit -m "ci: trigger build" --allow-empty
git push
timeout-minutes: 10

0 comments on commit 077f694

Please sign in to comment.