Skip to content

Commit

Permalink
build(main-action): version application prior to publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamesmallon1 committed Jan 5, 2024
1 parent 4f46b64 commit 28fcf32
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/main-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,19 @@ jobs:
- name: Check out repository
uses: actions/checkout@v4

- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20.10'

- name: Install Dependencies
run: npm install

- name: Semantic Release
run: npx semantic-release --repository-url https://github.com/Jamesmallon1/solana-block-cacher.git
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

- name: Install Rust
if: needs.get-next-version.outputs.new-release-published == 'true'
uses: actions-rs/toolchain@v1
Expand All @@ -73,17 +86,4 @@ jobs:
cargo install semantic-release-cargo
semantic-release-cargo prepare ${{ needs.get-next-version.outputs.new-release-version }}
cargo login ${{ secrets.CARGO_TOKEN }}
cargo publish --allow-dirty
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20.10'

- name: Install Dependencies
run: npm install

- name: Semantic Release
run: npx semantic-release --repository-url https://github.com/Jamesmallon1/solana-block-cacher.git
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
cargo publish --allow-dirty

0 comments on commit 28fcf32

Please sign in to comment.