diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index fcc8c39..95030d6 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -5,6 +5,9 @@ on: branches: - alpha +permissions: + contents: write + jobs: bump-version: if: "!contains(github.event.head_commit.message, '[skip ci]')" @@ -23,9 +26,8 @@ jobs: - run: npm version prerelease --preid=alpha - run: | - git add package.json - git commit -m "ci: bump version to ${{ steps.bump_version.outputs.new_version }} [skip ci]" - git push origin alpha + git commit -am "ci: bump version to ${{ steps.bump_version.outputs.new_version }} [skip ci]" + git push publish-npm: needs: bump-version