File tree Expand file tree Collapse file tree 1 file changed +5
-24
lines changed
Expand file tree Collapse file tree 1 file changed +5
-24
lines changed Original file line number Diff line number Diff line change @@ -66,33 +66,14 @@ jobs:
6666 PR_URL : ${{github.event.pull_request.html_url}}
6767 GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
6868
69- npm-publish-build :
69+ npm-publish-dev :
7070 needs : build
71- runs-on : ubuntu-latest
72- permissions :
73- id-token : write # Required for OIDC
74- contents : read
75- steps :
76- - uses : actions/download-artifact@v8
77- with :
78- name : build
79- - uses : actions/setup-node@v6
80- with :
81- node-version : 22
82- registry-url : ' https://registry.npmjs.org'
83- - name : Update npm to latest (required for OIDC)
84- run : npm install -g npm@latest
85- - uses : rlespinasse/github-slug-action@v3.x
86- - name : Append commit hash to package version
87- run : ' sed -i -E "s/(\"version\": *\"[^\"]+)/\1-${GITHUB_SHA_SHORT}/" package.json'
88- - name : Disable pre- and post-publish actions
89- run : ' sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
90- - name : Publish to npm
91- if : github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
92- run : npm publish --tag ${{ env.GITHUB_REF_SLUG }}
71+ uses : SolidOS/solidos/.github/workflows/publish-prerelease.yml@main
72+ with :
73+ node_version : 22
9374
9475 npm-publish-latest :
95- needs : [build, npm-publish-build ]
76+ needs : [build]
9677 runs-on : ubuntu-latest
9778 if : github.ref == 'refs/heads/main'
9879 permissions :
You can’t perform that action at this time.
0 commit comments