Skip to content

Commit a24d63b

Browse files
authored
Merge pull request #153 from prefab-cloud/fix-submodule-ref
Fix prefab-common submodule reference
2 parents 3ca2ed2 + c038a4d commit a24d63b

3 files changed

Lines changed: 20 additions & 6 deletions

File tree

.github/workflows/manualRelease.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ jobs:
1010
- uses: actions/checkout@v4
1111
with:
1212
token: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }}
13+
submodules: recursive
1314
- name: Conventional Changelog Action
1415
id: changelog
1516
uses: TriPSs/conventional-changelog-action@d360fad3a42feca6462f72c97c165d60a02d4bf2

.github/workflows/onRelease.yml

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,23 @@ on:
1010
description: tag that needs to publish
1111
type: string
1212
required: true
13+
1314
jobs:
1415
npm:
15-
uses: oclif/github-workflows/.github/workflows/npmPublish.yml@main
16-
with:
17-
tag: latest
18-
githubTag: ${{ github.event.release.tag_name || inputs.tag }}
19-
secrets: inherit
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: read
19+
id-token: write # required for npm OIDC trusted publishing
20+
steps:
21+
- uses: actions/checkout@v4
22+
with:
23+
ref: ${{ github.event.release.tag_name || inputs.tag }}
24+
submodules: recursive
25+
- uses: actions/setup-node@v4
26+
with:
27+
node-version: lts/*
28+
cache: yarn
29+
registry-url: https://registry.npmjs.org
30+
- run: yarn install --network-timeout 600000
31+
- run: yarn build
32+
- run: npm publish --access public

src/prefab-common

0 commit comments

Comments
 (0)