Skip to content

Commit

Permalink
fix: ci release (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
underfin authored Mar 4, 2024
1 parent 65b9bd6 commit 483e533
Show file tree
Hide file tree
Showing 19 changed files with 64 additions and 19 deletions.
41 changes: 39 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -179,9 +179,40 @@ jobs:
name: node-artifact
path: packages/node/dist/**

build-wasm:
name: Build Wasm
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install Rust
uses: moonrepo/setup-rust@v1
with:
cache-base: main

- name: Install node
uses: actions/setup-node@v3
with:
node-version: 18.18.0
cache: yarn

- name: Install dependencies
run: yarn install

- name: Build Wasm
run: yarn build:wasm:release

- name: Upload Wasm Artifact
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
name: wasm-artifact
path: crates/rolldown_binding_wasm/dist/**

test:
needs:
- build-binding
- build-wasm
- build-node-packages
strategy:
fail-fast: false
Expand Down Expand Up @@ -250,7 +281,13 @@ jobs:
cache: yarn

- name: Install dependencies
run: yarn install
run: yarn install && git reset --hard # fix yarn install add new line for package.json

- name: Download Wasm Artifacts
uses: actions/download-artifact@v4
with:
path: crates/rolldown_binding_wasm/dist
name: wasm-artifact

- name: Download Binding Artifacts
uses: actions/download-artifact@v4
Expand All @@ -275,7 +312,7 @@ jobs:
find ./packages/ -type d -maxdepth 1 -exec cp LICENSE {} \;
find ./packages/ -type d -maxdepth 1 -exec cp THIRD-PARTY-LICENSE {} \;
echo "//registry.npmjs.org/:_authToken=$ROLLDOWN_NPM_TOKEN" >> ~/.npmrc
yarn lerna publish from-package --no-private --no-verify-access --yes
yarn lerna publish from-package --no-private --no-git-reset --yes
env:
ROLLDOWN_NPM_TOKEN: ${{ secrets.ROLLDOWN_NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -166,3 +166,7 @@ justfile*

# vitepress
docs/.vitepress/cache

# ci release avoid lerna error: Working tree has uncommitted changes
crates/rolldown_binding/artifacts/
packages/**/THIRD-PARTY-LICENSE
2 changes: 1 addition & 1 deletion crates/rolldown_binding/npm/android-arm-eabi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rolldown/node-binding-android-arm-eabi",
"version": "0.0.3",
"version": "0.0.4",
"os": [
"android"
],
Expand Down
2 changes: 1 addition & 1 deletion crates/rolldown_binding/npm/android-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rolldown/node-binding-android-arm64",
"version": "0.0.3",
"version": "0.0.4",
"os": [
"android"
],
Expand Down
2 changes: 1 addition & 1 deletion crates/rolldown_binding/npm/darwin-arm64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rolldown/node-binding-darwin-arm64",
"version": "0.0.3",
"version": "0.0.4",
"os": [
"darwin"
],
Expand Down
2 changes: 1 addition & 1 deletion crates/rolldown_binding/npm/darwin-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rolldown/node-binding-darwin-x64",
"version": "0.0.3",
"version": "0.0.4",
"os": [
"darwin"
],
Expand Down
2 changes: 1 addition & 1 deletion crates/rolldown_binding/npm/freebsd-x64/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rolldown/node-binding-freebsd-x64",
"version": "0.0.3",
"version": "0.0.4",
"os": [
"freebsd"
],
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rolldown/node-binding-linux-arm-gnueabihf",
"version": "0.0.3",
"version": "0.0.4",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion crates/rolldown_binding/npm/linux-arm64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rolldown/node-binding-linux-arm64-gnu",
"version": "0.0.3",
"version": "0.0.4",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion crates/rolldown_binding/npm/linux-arm64-musl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rolldown/node-binding-linux-arm64-musl",
"version": "0.0.3",
"version": "0.0.4",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion crates/rolldown_binding/npm/linux-x64-gnu/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rolldown/node-binding-linux-x64-gnu",
"version": "0.0.3",
"version": "0.0.4",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion crates/rolldown_binding/npm/linux-x64-musl/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rolldown/node-binding-linux-x64-musl",
"version": "0.0.3",
"version": "0.0.4",
"os": [
"linux"
],
Expand Down
2 changes: 1 addition & 1 deletion crates/rolldown_binding/npm/win32-arm64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rolldown/node-binding-win32-arm64-msvc",
"version": "0.0.3",
"version": "0.0.4",
"os": [
"win32"
],
Expand Down
2 changes: 1 addition & 1 deletion crates/rolldown_binding/npm/win32-ia32-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rolldown/node-binding-win32-ia32-msvc",
"version": "0.0.3",
"version": "0.0.4",
"os": [
"win32"
],
Expand Down
2 changes: 1 addition & 1 deletion crates/rolldown_binding/npm/win32-x64-msvc/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rolldown/node-binding-win32-x64-msvc",
"version": "0.0.3",
"version": "0.0.4",
"os": [
"win32"
],
Expand Down
2 changes: 1 addition & 1 deletion crates/rolldown_binding/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rolldown/node-binding",
"version": "0.0.3",
"version": "0.0.4",
"description": "Fast JavaScript/TypeScript bundler in Rust with Rollup-compatible API.",
"main": "index.js",
"repository": "[email protected]:rolldown-rs/rolldown.git",
Expand Down
6 changes: 5 additions & 1 deletion crates/rolldown_binding_wasm/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,15 @@
{
"name": "@rolldown/wasm-binding",
"version": "0.0.3",
"version": "0.0.4",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/rolldown-rs/rolldown"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public"
},
"scripts": {
"build": "npm-run-all -s build:wasm clean-wasm-build",
"build:release": "npm-run-all -s build:wasm:release clean-wasm-build",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "monorepo",
"version": "0.0.0",
"version": "0.0.3",
"description": "Rollup in Rust",
"main": "index.js",
"private": true,
Expand Down
2 changes: 1 addition & 1 deletion packages/node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@rolldown/node",
"version": "0.0.3",
"version": "0.0.4",
"description": "rolldown core binding",
"main": "./dist/index.cjs",
"types": "./dist/index.d.ts",
Expand Down

0 comments on commit 483e533

Please sign in to comment.