diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index cf41290..2ecd46b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -53,12 +53,10 @@ jobs: - name: Checkout uses: actions/checkout@v3 - name: Set the release version - runs-on: macos-latest shell: bash run: | export RELEASE_VERSION=${GITHUB_REF:11} echo "RELEASE_VERSION=${RELEASE_VERSION}" >> $GITHUB_ENV - sh ./version.sh $RELEASE_VERSION - name: Install Rust toolchain uses: actions-rs/toolchain@v1 with: diff --git a/Cargo.lock b/Cargo.lock index 1f99d52..2582cbc 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1175,7 +1175,7 @@ checksum = "436b050e76ed2903236f032a59761c1eb99e1b0aead2c257922771dab1fc8c78" [[package]] name = "robespierre" -version = "0.1.0" +version = "0.0.3" dependencies = [ "anyhow", "clap", diff --git a/Cargo.toml b/Cargo.toml index ceb3298..e3bb748 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "robespierre" -version = "0.0.2" +version = "0.0.3" edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html diff --git a/npm/robespierre/package.json b/npm/robespierre/package.json index 0f3b57f..b4d8e07 100644 --- a/npm/robespierre/package.json +++ b/npm/robespierre/package.json @@ -1,6 +1,6 @@ { "name": "robespierre", - "version": "0.0.2", + "version": "0.0.3", "description": "Find extraneous and implicit dependencies by comparing your manifest and actual imports in your code using AST parsing", "bin": "lib/index.js", "scripts": { @@ -35,12 +35,12 @@ "typescript": "^5.1.3" }, "optionalDependencies": { - "robespierre-linux-x64": "0.0.2", + "robespierre-linux-x64": "0.0.3", "robespierre-linux-arm64":"0.0.0", - "robespierre-darwin-x64": "0.0.2", - "robespierre-darwin-arm64": "0.0.2", - "robespierre-windows-x64": "0.0.2", - "robespierre-windows-arm64": "0.0.2" + "robespierre-darwin-x64": "0.0.3", + "robespierre-darwin-arm64": "0.0.3", + "robespierre-windows-x64": "0.0.3", + "robespierre-windows-arm64": "0.0.3" }, "eslintConfig": { "extends": [ diff --git a/version.sh b/version.sh index 4e1bd71..72adf57 100644 --- a/version.sh +++ b/version.sh @@ -4,3 +4,4 @@ sed -Ei '' "s/\"robespierre-([a-z0-9-]+)\": \"[0-9\.]+\"/\"robespierre-\1\": \"$ sed -Ei '' "s/^version = \"[0-9\.]+\"$/version = \"${release}\"/" ./Cargo.toml cat ./npm/robespierre/package.json cat ./Cargo.toml +cargo build