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