Skip to content

Commit

Permalink
Update CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
SoraSuegami committed Oct 20, 2023
1 parent b927890 commit 9c503f3
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 2 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Publish

on: [push]

permissions:
contents: read
packages: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 18
- name: "Setup Rust"
uses: ATiltedTree/setup-rust@v1
with:
rust-version: nightly
components: clippy
- name: Download circom
run: wget https://github.com/iden3/circom/releases/latest/download/circom-linux-amd64 -O /usr/local/bin/circom
- name: Update permission
run: chmod +x /usr/local/bin/circom
- name: Install yarn
run: npm install -g yarn
- name: Install dependencies
run: yarn
- name: Publish binaries
run: yarn package
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_PRE_GYP_GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CI
name: Test

on: [push]

Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
],
"scripts": {
"postinstall": "cargo install --path ./packages/compiler",
"test": "yarn workspaces -pt run test"
"test": "yarn workspaces -pt run test",
"package": "yarn workspaces -pt run package"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 9c503f3

Please sign in to comment.