Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Use node 16 for publishing + Add build step #23

Merged
merged 6 commits into from
Jul 15, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 64 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,64 @@
name: Publish Pyth SDK to crates.io

on:
pull_request:
push:
branches: [main]
jobs:
publish-pyth-common-js:
name: Publish Pyth Common JS
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
working-directory: "pyth-common-js"
- run: npm run build
working-directory: "pyth-common-js"
publish-pyth-evm-js:
name: Publish Pyth EVM JS
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
steps:
- uses: actions/checkout@v2
with:
persist-credentials: false
# This step is required for npm 14 to work for installing this
- name: Reconfigure git to use HTTP authentication
run: >
git config --global url."https://github.com/".insteadOf
ssh://git@github.com/
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
working-directory: "pyth-evm-js"
- run: npm run build
working-directory: "pyth-evm-js"
publish-pyth-terra-js:
name: Publish Pyth Common JS
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 16.x, 18.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
working-directory: "pyth-terra-js"
- run: npm run build
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
working-directory: "pyth-terra-js"
6 changes: 3 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "12.x"
node-version: "16"
registry-url: "https://registry.npmjs.org"
- run: npm ci
working-directory: "pyth-common-js"
Expand All @@ -29,7 +29,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "12.x"
node-version: "16"
registry-url: "https://registry.npmjs.org"
- run: npm ci
working-directory: "pyth-evm-js"
Expand All @@ -45,7 +45,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: "12.x"
node-version: "16"
registry-url: "https://registry.npmjs.org"
- run: npm ci
working-directory: "pyth-terra-js"
Expand Down