Skip to content

Commit 613615e

Browse files
committed
fix tag push
1 parent e88d65a commit 613615e

1 file changed

Lines changed: 13 additions & 12 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,10 @@ jobs:
3232
steps:
3333
- name: checkout
3434
uses: actions/checkout@v4
35+
with:
36+
fetch-depth: '0' # required to push tags
3537

3638
- name: configure git
37-
shell: bash
3839
run: |
3940
git config --global user.name "FusionAuth Automation"
4041
git config --global user.email "donotreply@fusionauth.io"
@@ -67,22 +68,22 @@ jobs:
6768
- name: set version
6869
run: npm version ${{ inputs.version }}
6970

70-
- name: install dependencies
71-
run: npm install
71+
# - name: install dependencies
72+
# run: npm install
7273

73-
- name: build the package
74-
run: npm run build
74+
# - name: build the package
75+
# run: npm run build
7576

76-
- name: test publish to npmjs
77-
if: inputs.command == 'test'
78-
run: npm publish --dry-run
77+
# - name: test publish to npmjs
78+
# if: inputs.command == 'test'
79+
# run: npm publish --dry-run
7980

80-
- name: publish to npmjs (only on main branch)
81-
if: inputs.command == 'publish' && github.ref == 'refs/heads/main'
82-
run: npm publish
81+
# - name: publish to npmjs (only on main branch)
82+
# if: inputs.command == 'publish' && github.ref == 'refs/heads/main'
83+
# run: npm publish
8384

8485
- name: commit version changes (only on main branch)
8586
if: inputs.command == 'publish' && github.ref == 'refs/heads/main'
8687
run: |
8788
git commit -am "publish v${{ inputs.version }}"
88-
git push origin main --tags
89+
git push origin main "v${{ inputs.version }}"

0 commit comments

Comments
 (0)