-
Notifications
You must be signed in to change notification settings - Fork 9
44 lines (36 loc) · 1006 Bytes
/
publish.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Release to ghcr.io
on:
push:
branches:
- aptos
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Rust Toolchain
uses: dtolnay/rust-toolchain@master
with:
toolchain: nightly
target: wasm32-wasi
components: rust-src
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: https://npm.pkg.github.com
scope: "@${{ github.repository_owner }}"
- name: Setup registry
run: echo @${{ github.repository_owner }}:registry=https://npm.pkg.github.com >> .npmrc
- name: Install dependencies
run: yarn install
- name: Build package
run: yarn build
- name: Publish package
run: yarn release
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}