Skip to content

Commit

Permalink
Merge pull request #34 from leapwallet/fix/publish-workflow
Browse files Browse the repository at this point in the history
fix node version in publish workflow
  • Loading branch information
baryon2 authored Oct 22, 2024
2 parents 8f10068 + 66f326e commit 70fb9ac
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 20 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/publish-beta.workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- run: yarn
- run: yarn lint:check
test:
Expand All @@ -17,15 +17,10 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- run: yarn
- run: yarn test

- name: Comment Test Coverage
uses: raulanatol/jest-coverage-comment-action@main
with:
github-token: ${{ secrets.NODE_AUTH_TOKEN }}
use-existing-reports: true
publish-npm-registry:
if: github.ref == 'refs/heads/staging'
needs: [lint, test]
Expand All @@ -34,7 +29,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
registry-url: 'https://registry.npmjs.org'
- run: yarn
- run: yarn build
Expand All @@ -49,7 +44,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
registry-url: 'https://npm.pkg.github.com'
scope: '@leapwallet'
- run: yarn
Expand Down
17 changes: 6 additions & 11 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- run: yarn
- run: yarn lint:check
test:
Expand All @@ -18,15 +18,10 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- run: yarn
- run: yarn test:coverage
- run: yarn test

- name: Comment Test Coverage
uses: raulanatol/jest-coverage-comment-action@main
with:
github-token: ${{ secrets.NODE_AUTH_TOKEN }}
use-existing-reports: true
host-docs:
if: github.ref == 'refs/heads/main'
needs: [lint, test]
Expand All @@ -35,7 +30,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
node-version: 18
- run: yarn
- run: yarn doc:build
- uses: actions/upload-artifact@v2
Expand All @@ -55,7 +50,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
registry-url: 'https://registry.npmjs.org'
- run: yarn
- run: yarn build
Expand All @@ -70,7 +65,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18
registry-url: 'https://npm.pkg.github.com'
scope: '@leapwallet'
- run: yarn
Expand Down

0 comments on commit 70fb9ac

Please sign in to comment.