File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -56,33 +56,14 @@ jobs:
5656 PR_URL : ${{github.event.pull_request.html_url}}
5757 GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
5858
59- npm-publish-build :
60- needs : build
61- runs-on : ubuntu-latest
62- permissions :
63- id-token : write
64- contents : read
65- steps :
66- - uses : actions/download-artifact@v8
67- with :
68- name : build
69- - uses : actions/setup-node@v6
70- with :
71- node-version : 22
72- registry-url : ' https://registry.npmjs.org'
73- - name : Update npm to latest (required for OIDC)
74- run : npm install -g npm@latest
75- - uses : rlespinasse/github-slug-action@v3.x
76- - name : Append commit hash to package version
77- run : ' sed -i -E "s/(\"version\": *\"[^\"]+)/\1-${GITHUB_SHA_SHORT}/" package.json'
78- - name : Disable pre- and post-publish actions
79- run : ' sed -i -E "s/\"((pre|post)publish)/\"ignore:\1/" package.json'
80- - name : Publish to npm
81- if : github.actor != 'dependabot[bot]' && github.actor != 'dependabot-preview[bot]'
82- run : npm publish --tag ${{ env.GITHUB_REF_SLUG }}
59+ npm-publish-dev :
60+ needs : build
61+ uses : SolidOS/solidos/.github/workflows/publish-prerelease.yml@main
62+ with :
63+ node_version : 22
8364
8465 npm-publish-latest :
85- needs : [build, npm-publish-build ]
66+ needs : [build]
8667 runs-on : ubuntu-latest
8768 if : github.ref == 'refs/heads/main'
8869 permissions :
You can’t perform that action at this time.
0 commit comments