1
1
mirror of https://github.com/orhun/git-cliff.git synced 2024-11-25 12:22:44 +03:00

chore(npm): publish rc version for prereleases (#528)

* ci: publish rc version with rc dist-tags

* refactor: use github.ref
This commit is contained in:
Jeroen Claassens 2024-03-05 19:17:22 +01:00 committed by GitHub
parent 8b3d09f776
commit 16bea5179a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 15 additions and 5 deletions

View File

@ -249,7 +249,7 @@ jobs:
cp "../target/${{ matrix.build.TARGET }}/release/${bin}" "${node_pkg}/bin"
cp ../README.md "${node_pkg}"
cd "${node_pkg}"
npm publish --access public
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Build Python wheels (linux)
@ -302,12 +302,16 @@ jobs:
registry-url: "https://registry.npmjs.org"
- name: Publish the package
shell: bash
working-directory: npm/git-cliff
run: |
cd npm/git-cliff
yarn install
yarn build
cp ../../README.md .
npm publish --access public
if [ ${{ contains(github.ref, '-') }} = "true" ]; then
yarn npm publish --tag rc
else
yarn npm publish
fi
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
YARN_ENABLE_IMMUTABLE_INSTALLS: false

View File

@ -106,5 +106,8 @@
],
"root": true
},
"packageManager": "yarn@4.1.0"
"packageManager": "yarn@4.1.0",
"publishConfig": {
"access": "public"
}
}

View File

@ -51,5 +51,8 @@
],
"cpu": [
"${node_arch}"
]
],
"publishConfig": {
"access": "public"
}
}