Skip to content
This repository has been archived by the owner on Jun 26, 2023. It is now read-only.

Commit

Permalink
chore: fix publish
Browse files Browse the repository at this point in the history
  • Loading branch information
achingbrain committed Jan 4, 2022
1 parent 54bbc33 commit 888e9bf
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
17 changes: 13 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ jobs:
run: |
npm install
npm run --if-present build
- run: npx xvfb-maybe npm run --if-present test:electron-main --bail
- run: npx xvfb-maybe npm run --if-present test:electron-main -- --bail

test-electron-renderer:
needs: check
Expand All @@ -175,12 +175,12 @@ jobs:
run: |
npm install
npm run --if-present build
- run: npx xvfb-maybe npm run --if-present test:electron-renderer --bail
- run: npx xvfb-maybe npm run --if-present test:electron-renderer -- --bail

release:
needs: [test-node, test-chrome, test-firefox, test-electron-main]
runs-on: ubuntu-latest
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
if: github.event_name == 'push' && github.ref == 'refs/heads/master' && !contains(github.event.head_commit.author.name, 'Github Actions')
steps:
- uses: actions/checkout@v2.4.0
with:
Expand All @@ -205,7 +205,16 @@ jobs:
run: |
npm install
npm run --if-present build
- run: npm run --if-present release
- run: |
git config --global user.email "actions@github.com"
git config --global user.name "Github Actions"
if [[ -n "${NPM_TOKEN}" ]]; then
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > .npmrc
fi
if [[ -n "${DOCKER_TOKEN}" ]] && [[ -n "${DOCKER_USERNAME}" ]]; then
echo "$DOCKER_TOKEN" | docker login -u "$DOCKER_USERNAME" --password-stdin
fi
npm run --if-present release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Expand Down
3 changes: 1 addition & 2 deletions lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@
"publish": {
"message": "chore: publish",
"createRelease": "github",
"conventionalCommits": true,
"verifyAccess": false
"conventionalCommits": true
},
"version": {
"private": false
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"build": "lerna run build",
"lint": "lerna run lint",
"dep-check": "lerna run dep-check",
"release": "lerna run build && lerna publish --force-publish --yes"
"release": "lerna publish --yes --loglevel silly 2>&1"
},
"bugs": "https://github.com/libp2p/js-libp2p-interfaces/issues",
"homepage": "https://github.com/libp2p/js-libp2p-interfaces#readme",
Expand Down

0 comments on commit 888e9bf

Please sign in to comment.