diff --git a/.github/workflows/publish-bolt-crates.yml b/.github/workflows/publish-bolt-crates.yml index 2e15ccc..a5e4230 100644 --- a/.github/workflows/publish-bolt-crates.yml +++ b/.github/workflows/publish-bolt-crates.yml @@ -186,7 +186,6 @@ jobs: DRY_RUN_FLAG="--dry-run" fi - cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/attribute/account/Cargo.toml --token ${CRATES_TOKEN} cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/attribute/component/Cargo.toml --token ${CRATES_TOKEN} cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/attribute/component-deserialize/Cargo.toml --token ${CRATES_TOKEN} cargo publish $DRY_RUN_FLAG --manifest-path=crates/bolt-lang/attribute/component-id/Cargo.toml --token ${CRATES_TOKEN} diff --git a/.github/workflows/publish-bolt-sdk.yml b/.github/workflows/publish-bolt-sdk.yml index 0673d66..ead10dc 100644 --- a/.github/workflows/publish-bolt-sdk.yml +++ b/.github/workflows/publish-bolt-sdk.yml @@ -185,6 +185,7 @@ jobs: npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }} cd clients/bolt-sdk/ && yarn build && yarn lint:fix && cd ../../ && yarn lint:fix cd clients/bolt-sdk/ + npm install --only=dev if [ "${DRY_RUN}" = "true" ]; then echo "Running npm publish in dry-run mode" npm publish --access public --dry-run diff --git a/.github/workflows/publish-packages.yml b/.github/workflows/publish-packages.yml index 29c07fd..05fffd5 100644 --- a/.github/workflows/publish-packages.yml +++ b/.github/workflows/publish-packages.yml @@ -171,7 +171,6 @@ jobs: cd ${{ env.node_pkg }} echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }} - npm publish --access public if [ "${DRY_RUN}" = "true" ]; then echo "Running npm publish in dry-run mode" npm publish --access public --dry-run diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index e1fd0b3..c693124 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -12,6 +12,12 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Set if on release + shell: bash + run: | + if [[ $GITHUB_REF == refs/heads/release/v* ]]; then + echo "ON_RELEASE=true" >> $GITHUB_ENV + fi - uses: actions/cache@v4 name: cache solana cli id: cache-solana @@ -165,6 +171,7 @@ jobs: anchor test - name: Install the Bolt CLI and create & build a new project + if: ${{ env.ON_RELEASE }} == 'false' run: | export PATH="/home/runner/.local/share/solana/install/active_release/bin:$PATH" cargo install --path cli --force --locked @@ -174,10 +181,4 @@ jobs: cargo add --package movement --path "../crates/bolt-lang" # - yarn add file:../clients/bolt-sdk/ -D # Overrides the bolt ts SDK with the local version bolt build - bolt test - - - uses: actions/upload-artifact@v3 - if: always() - with: - name: program-logs - path: .anchor/program-logs/* \ No newline at end of file + bolt test \ No newline at end of file