Skip to content

Commit

Permalink
feat: add component
Browse files Browse the repository at this point in the history
  • Loading branch information
aajimal committed Sep 26, 2024
1 parent 6244c7d commit fb7b0ba
Show file tree
Hide file tree
Showing 29 changed files with 73 additions and 18,740 deletions.
2 changes: 1 addition & 1 deletion .github/actions/setup-node-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ runs:
path: ${{inputs.cache-path}}
key: ${{inputs.cache-key}}
- run: npm ci --prefix ${{inputs.project}}
shell: bash
shell: bash
25 changes: 25 additions & 0 deletions .github/workflows/goodbye-rust-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: goodbye Rust CI

on:
workflow_dispatch:
push:
paths:
- 'goodbye-rust/**'
- '.github/workflows/goodbye-rust-ci.yml'

jobs:
test-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Test
uses: clechasseur/rs-cargo@v2
with:
command: test
args: --verbose --manifest-path goodbye-rust/Cargo.toml
- name: Build
uses: clechasseur/rs-cargo@v2
with:
command: build
args: --verbose --release --manifest-path goodbye-rust/Cargo.toml
22 changes: 0 additions & 22 deletions .github/workflows/hello-react-ci.yml

This file was deleted.

28 changes: 15 additions & 13 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ jobs:
release-please:
runs-on: ubuntu-latest
outputs:
hello-react--tag_name: ${{ steps.release.outputs.hello-react--tag_name}}
hello-react--release_created: ${{ steps.release.outputs.hello-react--release_created}}
goodbye-rust--tag_name: ${{ steps.release.outputs.goodbye-rust--tag_name}}
goodbye-rust--release_created: ${{ steps.release.outputs.goodbye-rust--release_created}}
hello-rust--tag_name: ${{ steps.release.outputs.hello-rust--tag_name}}
hello-rust--release_created: ${{ steps.release.outputs.hello-rust--release_created}}
steps:
Expand All @@ -31,25 +31,27 @@ jobs:
echo "${{ toJson(steps.release.outputs) }}"
release-hello-react:
if: ${{needs.release-please.outputs.hello-react--release_created}}
release-goodbye-rust:
if: ${{needs.release-please.outputs.goodbye-rust--release_created}}
runs-on: ubuntu-latest
needs: release-please
steps:
- uses: actions/checkout@v4
- uses: ./.github/actions/setup-node-env
- uses: dtolnay/rust-toolchain@stable
- name: Test
uses: clechasseur/rs-cargo@v2
with:
command: test
args: --verbose --manifest-path goodbye-rust/Cargo.toml
- name: Build
uses: clechasseur/rs-cargo@v2
with:
node-version: 18
cache-path: hello-react/node_modules
cache-key: "${{hashFiles('hello-react/package-lock.json')}}"
project: hello-react
- run: npm test --prefix hello-react -- a --watchAll=false
- run: npm run build --prefix hello-react
- run: zip -r hello-react-build.zip hello-react/build
command: build
args: --verbose --release --manifest-path goodbye-rust/Cargo.toml --target x86_64-unknown-linux-gnu
- name: Upload Release Artifact
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: gh release upload ${{ needs.release-please.outputs.hello-react--tag_name }} hello-react-build.zip
run: gh release upload ${{ needs.release-please.outputs.goodbye-rust--tag_name }} goodbye-rust/target/x86_64-unknown-linux-gnu/release/goodbye_rust

release-hello-rust:
if: ${{needs.release-please.outputs.hello-rust--release_created}}
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,7 @@ target/
/.idea/
/.vscode/
/*.iml
*.orig
*.orig

# Other
.release-please-github-token.secret
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"hello-react": "0.2.0",
"goodbye-rust": "0.2.0",
"hello-rust": "0.2.0"
}
8 changes: 8 additions & 0 deletions goodbye-rust/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changelog

## [0.2.0](https://github.com/amarjanica/release-please-monorepo-example/compare/hello_rust-v0.1.0...hello_rust@v0.2.0) (2024-05-25)


### Features

* **rust:** add example code ([f8d6173](https://github.com/amarjanica/release-please-monorepo-example/commit/f8d61736e63e4c1baf1d881c50556fa0ba6829d0))
7 changes: 7 additions & 0 deletions goodbye-rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions goodbye-rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[package]
name = "goodbye_rust"
version = "0.2.0"
edition = "2021"

[dependencies]
3 changes: 3 additions & 0 deletions goodbye-rust/src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fn main() {
println!("Goodbye, world!");
}
8 changes: 0 additions & 8 deletions hello-react/CHANGELOG.md

This file was deleted.

70 changes: 0 additions & 70 deletions hello-react/README.md

This file was deleted.

Loading

0 comments on commit fb7b0ba

Please sign in to comment.