Skip to content

Commit

Permalink
release fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
GabiGrin committed Sep 12, 2024
1 parent ccbaa61 commit a47ffb9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 60 deletions.
52 changes: 0 additions & 52 deletions .github/workflows/jobs.yaml

This file was deleted.

15 changes: 10 additions & 5 deletions .github/workflows/publish-npm.yaml → .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,10 +1,15 @@
name: Build and Publish to NPM
name: Build, Test, Lint

on:
workflow_dispatch:
push:
branches:
- main
pull_request:
branches:
- main

jobs:
build-and-publish:
build-test-lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down Expand Up @@ -45,8 +50,8 @@ jobs:
run: xvfb-run -a pnpm run test
- name: Lint
run: pnpm run lint
- name: Publish to NPM (excluding private packages)
if: github.ref == 'refs/heads/main'
- name: If release, Publish to NPM
if: github.ref == 'refs/heads/main' && startsWith(github.event.head_commit.message, 'Prepare for v')
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "[email protected]"
Expand Down
4 changes: 1 addition & 3 deletions updateVersions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@ rl.question(

try {
execSync("git add .");
execSync(
`git commit -m "Bump versions to ${newVersion} for ${bumpType} release"`
);
execSync(`git commit -m "Prepare for v${newVersion} release"`);
execSync("git push");
execSync(`git tag v${newVersion}`);
execSync(`git push origin tag v${newVersion}`);
Expand Down

0 comments on commit a47ffb9

Please sign in to comment.