Skip to content
This repository was archived by the owner on Dec 9, 2024. It is now read-only.

Commit 1caebed

Browse files
authored
fix: Updated publishing script and only run tag on the main repo, not forks (#665)
* Only run tag if new version on the main repo, not on forks * fixing GitHub tag name for GitHub release publishing * add missing build step to publish script * updated build step
1 parent dfeb0c5 commit 1caebed

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/integration.yml

+1
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ jobs:
194194
tag-if-new-version:
195195
runs-on: ubuntu-latest
196196
needs: [node-integration-tests, python-integration-tests]
197+
if: github.repository_owner == 'serverless'
197198

198199
steps:
199200
- name: Checkout repository

.github/workflows/publish.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,9 @@ jobs:
4444
run: |
4545
npm ci
4646
47+
- name: Build local package
48+
run: npm run build
49+
4750
- name: Publish new version
4851
# Note: Setting NODE_AUTH_TOKEN as job|workspace wide env var won't work
4952
# as it appears actions/setup-node sets own value
@@ -54,6 +57,6 @@ jobs:
5457
- name: Create and publish a release
5558
uses: softprops/action-gh-release@v1
5659
with:
57-
tag_name: ${GITHUB_REF##*/}
60+
tag_name: ${{ github.ref_name }}
5861
prerelease: false
5962
generate_release_notes: true

0 commit comments

Comments
 (0)