Skip to content

Commit

Permalink
try
Browse files Browse the repository at this point in the history
  • Loading branch information
borispoehland committed Aug 5, 2024
1 parent 3786c5e commit 9a4a28a
Showing 1 changed file with 6 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,13 @@
name: npm publish
name: npm publish to alpha

on:
push:
branches:
- alpha

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- run: npm ci

bump-version:
needs: build
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand All @@ -29,14 +20,15 @@ jobs:

- name: Commit and push version bump
run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git add package.json
git commit -m "ci: bump version to ${{ steps.bump_version.outputs.new_version }}"
git commit -m "ci: bump version to ${{ steps.bump_version.outputs.new_version }} [skip ci]"
git push origin main
publish-npm:
needs: bump-version
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
Expand Down

0 comments on commit 9a4a28a

Please sign in to comment.