Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: 👷 improve various aspect #53

Merged
merged 9 commits into from
Oct 6, 2023
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ jobs:
semantic-release:
name: 🤖 Semantic release
runs-on: ubuntu-latest
if: "!contains(github.event.pull_request.labels.*.name, 'skip-release')"
# if: ${{ github.ref_name == 'main' && github.event_name == 'push' }}
if: |
${{ github.event.workflow_run.conclusion == 'success' &&
!contains(github.event.pull_request.labels.*.name, 'skip-release') }}
outputs:
release: ${{ steps.tag_release.outputs.release }}
version: ${{ steps.tag_release.outputs.version }}
Expand Down Expand Up @@ -55,7 +56,6 @@ jobs:
- uses: softprops/action-gh-release@v1
with:
tag_name: ${{ needs.semantic-release.outputs.version }}
draft: true
prerelease: false
generate_release_notes: true

Expand All @@ -79,8 +79,8 @@ jobs:
- name: 📌 Set version
run: |
version=${{ needs.semantic-release.outputs.version }}
yarn version --new-version ${version:1} --no-git-tag-version
npm version --new-version ${version:1} --no-git-tag-version
- name: 📦 Publish
run: npm publish . --tag latest
run: npm publish . --tag latest --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
10 changes: 5 additions & 5 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ jobs:
cp test/restroom/test_keyring.json secrets/blockchains_client.json
cd restroom
mv .env.example .env
yarn && yarn run init
npm ci && npm run init
- name: 🛫 Start restroom
uses: dyne/restroom-github-action@v1
with:
Expand All @@ -87,7 +87,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
node-version: [16.x, 18.x, latest]
env:
SANDBOX_TEST_ADMIN_KEYRING: ${{secrets.SANDBOX_TEST_ADMIN_KEYRING}}
defaults:
Expand All @@ -101,9 +101,9 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: ⏬ Install dependencies
run: yarn
run: npm ci
- name: 🏗️ Build javascript bindings
run: yarn build
run: npm run build
- name: ⏫ Upload artifact
if: ${{ matrix.node-version == '16.x' }}
uses: actions/upload-artifact@v3
Expand All @@ -114,4 +114,4 @@ jobs:
./bindings/javascript/README.md
./bindings/javascript/dist/
- name: 🧪 Test bindings node-${{ matrix.node-version }}
run: yarn test
run: npm test
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@
# restroom files
.env
.envrc
package-lock.json
restroom/node_modules
node_modules

# logfile
*.log
Expand Down
Loading