Skip to content

Merge pull request #1 from o1-labs/feat/rename-snarkyjs-o1 #24

Merge pull request #1 from o1-labs/feat/rename-snarkyjs-o1

Merge pull request #1 from o1-labs/feat/rename-snarkyjs-o1 #24

Workflow file for this run

#
# ci.yml
#
# Run tests for all pushed commits and opened pull requests on Github.
#
name: CI
on: [push, pull_request]
jobs:
ci:
runs-on: ubuntu-latest
timeout-minutes: 10
strategy:
matrix:
node: [18, 20]
steps:
- name: Set up NodeJS
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}
- name: Git checkout
uses: actions/checkout@v2
- name: NPM ci, build, & test
run: |
npm ci
npm run build
npm run test
env:
CI: true
- name: Publish to NPM if version has changed
uses: JS-DevTools/npm-publish@v1
if: github.ref == 'refs/heads/main'
with:
token: ${{ secrets.NPM_TOKEN }}
env:
INPUT_TOKEN: ${{ secrets.NPM_TOKEN }}