Skip to content

Commit

Permalink
remove release jobs, use node 22
Browse files Browse the repository at this point in the history
  • Loading branch information
mitschabaude committed Oct 10, 2024
1 parent 334a6d1 commit 7f08e56
Showing 1 changed file with 4 additions and 67 deletions.
71 changes: 4 additions & 67 deletions .github/workflows/build-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '22'

- name: Cache dependencies and build
uses: actions/cache@v4
Expand Down Expand Up @@ -81,7 +81,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '22'

- name: Restore cache
uses: actions/cache@v4
Expand Down Expand Up @@ -125,7 +125,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '22'

- name: Restore cache
uses: actions/cache@v4
Expand Down Expand Up @@ -204,7 +204,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18'
node-version: '22'

- name: Restore npm cache
uses: actions/cache@v4
Expand Down Expand Up @@ -240,66 +240,3 @@ jobs:
name: e2e-tests-report
path: tests/report/
retention-days: 30

Release-on-NPM:
if: github.ref == 'refs/heads/main'
timeout-minutes: 180
runs-on: ubuntu-latest
needs: [Build-And-Test-Server, Run-Unit-Tests, Build-And-Test-Web]
steps:
- name: Restore repository
uses: actions/cache@v4
with:
path: .
key: repo-${{ github.sha }}

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18'

- name: Build o1js
run: |
npm ci
npm run prepublishOnly
- name: Publish to NPM if version has changed
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
strategy: upgrade
env:
INPUT_TOKEN: ${{ secrets.NPM_TOKEN }}

Release-mina-signer-on-NPM:
if: github.ref == 'refs/heads/main'
timeout-minutes: 180
runs-on: ubuntu-latest
needs: [Build-And-Test-Server, Run-Unit-Tests, Build-And-Test-Web]
steps:
- name: Restore repository
uses: actions/cache@v4
with:
path: .
key: repo-${{ github.sha }}

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '18'

- name: Build mina-signer
run: |
npm ci
cd src/mina-signer
npm ci
npm run prepublishOnly
- name: Publish to NPM if version has changed
uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
package: './src/mina-signer/package.json'
strategy: upgrade
env:
INPUT_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 7f08e56

Please sign in to comment.