fix(ci): fixed some general issues
Some checks failed
CI / build-and-publish (push) Failing after 40s
Some checks failed
CI / build-and-publish (push) Failing after 40s
This commit is contained in:
13
.github/workflows/ci.yml
vendored
13
.github/workflows/ci.yml
vendored
@@ -46,12 +46,11 @@ jobs:
|
|||||||
- name: Check formatting
|
- name: Check formatting
|
||||||
run: npm run format:check
|
run: npm run format:check
|
||||||
|
|
||||||
# - name: Run tests
|
# - name: Run tests
|
||||||
# run: npm test
|
# run: npm test
|
||||||
|
|
||||||
- name: Build npm package
|
- name: Build npm package
|
||||||
run: |
|
run: npm run build
|
||||||
npm run build
|
|
||||||
|
|
||||||
- name: Publish to Gitea npm registry
|
- name: Publish to Gitea npm registry
|
||||||
if: success()
|
if: success()
|
||||||
@@ -62,7 +61,9 @@ jobs:
|
|||||||
HOST="${GITHUB_SERVER_URL#https://}"
|
HOST="${GITHUB_SERVER_URL#https://}"
|
||||||
OWNER="${GITHUB_REPOSITORY_OWNER}"
|
OWNER="${GITHUB_REPOSITORY_OWNER}"
|
||||||
|
|
||||||
npm config set @${OWNER}:registry=https://${HOST}/api/packages/${OWNER}/npm
|
npm config set "@${OWNER}:registry" "https://${HOST}/api/packages/${OWNER}/npm/"
|
||||||
npm config set -- "//${HOST}/api/packages/${OWNER}/npm/:_authToken" "${G_TOKEN}"
|
npm config set "//${HOST}/api/packages/${OWNER}/npm/:_authToken" "${G_TOKEN}"
|
||||||
|
|
||||||
|
npm config set "//${HOST}/api/packages/npm/:_authToken" "${G_TOKEN}"
|
||||||
|
|
||||||
npm publish --ignore-scripts
|
npm publish --ignore-scripts
|
||||||
|
|||||||
Reference in New Issue
Block a user