ci: used default env variables available to me
Some checks failed
CI / build-and-publish (push) Failing after 47s
Some checks failed
CI / build-and-publish (push) Failing after 47s
This commit is contained in:
7
.github/workflows/ci.yml
vendored
7
.github/workflows/ci.yml
vendored
@@ -52,12 +52,11 @@ jobs:
|
||||
- name: Publish to Gitea npm registry
|
||||
if: success()
|
||||
env:
|
||||
GITEA_HOST: ${{ secrets.GITEA_HOST }}
|
||||
GITEA_TOKEN: ${{ secrets.GITEA_TOKEN }}
|
||||
GITEA_TOKEN: ${{ secrets.G_TOKEN }}
|
||||
run: |
|
||||
set -e
|
||||
OWNER="${{ github.repository_owner }}"
|
||||
echo "//${GITEA_HOST}/api/packages/${OWNER}/npm/:_authToken=${GITEA_TOKEN}" > .npmrc
|
||||
echo "//${GITHUB_SERVER_URL#https://}/api/packages/${OWNER}/npm/:_authToken=${GITEA_TOKEN}" > .npmrc
|
||||
npm publish \
|
||||
--registry "https://${GITEA_HOST}/api/packages/${OWNER}/npm" \
|
||||
--registry "https://${GITHUB_SERVER_URL#https://}/api/packages/${OWNER}/npm" \
|
||||
--ignore-scripts
|
||||
|
||||
Reference in New Issue
Block a user