From 97e838cae4a9966917279b2461f9deb1e7379c5d Mon Sep 17 00:00:00 2001 From: Alessandro Chitolina Date: Sat, 11 Nov 2023 12:08:17 +0100 Subject: [PATCH] 0.5.0-beta.4 --- .github/workflows/tests.yaml | 34 ++++++++++++++++++++++++++++++++++ package.json | 2 +- 2 files changed, 35 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml index c12483e..2eb06ed 100644 --- a/.github/workflows/tests.yaml +++ b/.github/workflows/tests.yaml @@ -90,3 +90,37 @@ jobs: npm install -g mocha npm ci npm test + publish: + name: Publish + runs-on: ubuntu-latest + needs: + - test_node + - test_rust + steps: + - uses: actions/checkout@v4 + - name: Setup node + uses: actions/setup-node@v3 + with: + node-version: 18 + check-latest: true + - name: Install dependencies + run: | + npm ci + cargo install wasm-pack --force + cargo clean + - name: Publish + run: | + if git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+$"; + then + echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc + npm publish --access public + elif git log -1 --pretty=%B | grep "^[0-9]\+\.[0-9]\+\.[0-9]\+"; + then + echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> ~/.npmrc + npm publish --tag next --access public + else + echo "Not a release, skipping publish" + fi + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} \ No newline at end of file diff --git a/package.json b/package.json index 08f02bc..e93d3c6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@jymfony/compiler", - "version": "0.5.0-beta.3", + "version": "0.5.0-beta.4", "type": "commonjs", "author": "Alessandro Chitolina ", "license": "MIT",