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:
parent
8b3d09f776
commit
16bea5179a
10
.github/workflows/cd.yml
vendored
10
.github/workflows/cd.yml
vendored
@ -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
|
||||
|
@ -106,5 +106,8 @@
|
||||
],
|
||||
"root": true
|
||||
},
|
||||
"packageManager": "yarn@4.1.0"
|
||||
"packageManager": "yarn@4.1.0",
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
}
|
||||
}
|
||||
|
@ -51,5 +51,8 @@
|
||||
],
|
||||
"cpu": [
|
||||
"${node_arch}"
|
||||
]
|
||||
],
|
||||
"publishConfig": {
|
||||
"access": "public"
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user