Skip to content

Commit

Permalink
ci: bump node to latest LTS - 20.10 and fix release
Browse files Browse the repository at this point in the history
Signed-off-by: Lachezar Lechev <[email protected]>
  • Loading branch information
elpiel committed Jan 5, 2024
1 parent 0cb6a4a commit 52a96bd
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 8 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,14 @@ jobs:
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: 12
node-version: 20.10
cache: 'npm'
registry-url: https://registry.npmjs.org/
- name: Set default rust toolchain
run: rustup default 1.61.0
- name: Rust setup (1.61)
uses: dtolnay/rust-toolchain@1.61
- name: Install NPM dependencies
run: npm ci
- name: Build
- name: Build v1 and generate v1 index.json
run: npm run --workspace official-addons build
- name: Build v2
run: npm run --workspace official-addons-v2 build
33 changes: 29 additions & 4 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,44 @@ on:
types: [published]

jobs:
publish:
# FIXME: needs a running server locally for the local-addon
# publish-v1:
# if: ${{ startsWith(github.event.release.tag_name, 'v1') }}
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v4
# - name: Setup NodeJS
# uses: actions/setup-node@v4
# with:
# node-version: 20
# cache: 'npm'
# registry-url: https://registry.npmjs.org/
# - name: Install NPM dependencies
# run: npm ci
# - name: Publish to NPM
# run: npm publish --workspace official-addons --access public
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
# - name: Publish to crates.io
# run: cargo publish --workspace official-addons --allow-dirty --token "$CARGO_AUTH_TOKEN"
# env:
# CARGO_AUTH_TOKEN: ${{ secrets.CRATES_IO_PUBLISH_TOKEN }}

publish-v2:
if: ${{ startsWith(github.event.release.tag_name, 'v2') }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup NodeJS
uses: actions/setup-node@v4
with:
node-version: 12
node-version: 20
cache: 'npm'
registry-url: https://registry.npmjs.org/
- name: Set default rust toolchain
run: rustup default 1.61.0
- name: Rust setup (1.61)
uses: dtolnay/rust-toolchain@1.61
- name: Install NPM dependencies
run: npm ci
- name: Build
Expand Down

0 comments on commit 52a96bd

Please sign in to comment.