Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 13 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,24 @@ jobs:
run: pnpm install --frozen-lockfile

- name: Update Version
working-directory: packages/event-tracker
run: |
git config --local user.email "github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
npm version ${{ github.event.inputs.version }} -m "Release v%s"
git checkout -b release/${{ github.event.inputs.version }}
git push --set-upstream origin release/${{ github.event.inputs.version }}
git add package.json
git commit -m "Release v${{ github.event.inputs.version }}"
git tag v${{ github.event.inputs.version }}
git push origin HEAD
git push --tags

- name: Run Tests
working-directory: packages/event-tracker
run: pnpm run ci:test

- name: Build Package
run: pnpm build
working-directory: packages/event-tracker
run: pnpm run build

- name: Create GitHub Release
env:
Expand All @@ -53,6 +61,7 @@ jobs:
--generate-notes

- name: Publish to npm
run: pnpm -F @offlegacy/event-tracker publish --no-git-checks
working-directory: packages/event-tracker
run: pnpm publish --no-git-checks
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading