We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ae84f32 commit a6b6638Copy full SHA for a6b6638
1 file changed
.github/workflows/publish.yml
@@ -11,6 +11,8 @@ jobs:
11
steps:
12
- name: Checkout repository
13
uses: actions/checkout@v3
14
+ with:
15
+ fetch-depth: 0 # Fetch all history for all branches and tags
16
17
- name: Set up Node.js
18
uses: actions/setup-node@v3
@@ -27,12 +29,14 @@ jobs:
27
29
run: npm version ${{ github.event.release.tag_name }} --no-git-tag-version
28
30
31
- name: Commit and push version change
32
+ env:
33
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
34
run: |
35
git config --global user.name 'github-actions'
36
git config --global user.email 'github-actions@github.com'
37
git add package.json
38
git commit -m "Update version to ${{ github.event.release.tag_name }}"
- git push
39
+ git push origin HEAD:master # Push changes to the master branch
40
41
- name: Publish to npm
42
env:
0 commit comments