Skip to content

Commit

Permalink
0.5.0-beta.4
Browse files Browse the repository at this point in the history
  • Loading branch information
alekitto committed Nov 11, 2023
1 parent f31635b commit 97e838c
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
34 changes: 34 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@jymfony/compiler",
"version": "0.5.0-beta.3",
"version": "0.5.0-beta.4",
"type": "commonjs",
"author": "Alessandro Chitolina <[email protected]>",
"license": "MIT",
Expand Down

0 comments on commit 97e838c

Please sign in to comment.