Skip to content

Commit

Permalink
Merge pull request #573 from amad/fix/release_pr
Browse files Browse the repository at this point in the history
Fix release_pr workflow
  • Loading branch information
amad authored Jan 25, 2022
2 parents ac94674 + 4cc0740 commit 2bac142
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/release_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ jobs:
run: |
echo "$(jq '.version = "${{ steps.bump.outputs.new_version }}"' package.json)" > package.json
git add package.json CHANGELOG.md
make build_all
git add package.json CHANGELOG.md dist/
git commit -m "Bump to version ${{ steps.bump.outputs.new_version }}"
git push
15 changes: 13 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
SHELL := /bin/bash

.PHONY: build_all
build_all: web react-native node worker

# sockjs:
Expand All @@ -8,10 +9,12 @@ build_all: web react-native node worker
# make build && \
# popd

.PHONY: json2
json2:
cp src/runtimes/web/dom/json2.js dist/web
node_modules/.bin/uglifyjs dist/web/json2.js -o dist/web/json2.min.js

.PHONY: web
web:
@echo "Browser Release:"
MINIMIZE=false node_modules/webpack/bin/webpack.js --config=webpack/config.web.js
Expand All @@ -25,14 +28,17 @@ web:
@echo "Minified Browser Release (with encryption)"
INCLUDE_TWEETNACL=true node_modules/webpack/bin/webpack.js --config=webpack/config.web.js

.PHONY: react-native
react-native:
@echo "React Native Release:"
node_modules/webpack/bin/webpack.js --config=webpack/config.react-native.js

.PHONY: node
node:
@echo "NodeJS Release":
MINIMIZE=false node_modules/webpack/bin/webpack.js --config=webpack/config.node.js

.PHONY: worker
worker:
@echo "Web Worker Release"
MINIMIZE=false node_modules/webpack/bin/webpack.js --config=webpack/config.worker.js
Expand All @@ -46,27 +52,32 @@ worker:
@echo "Minified Web Worker Release (with encryption)"
INCLUDE_TWEETNACL=true node_modules/webpack/bin/webpack.js --config=webpack/config.worker.js

.PHONY: web_unit
web_unit:
node_modules/karma/bin/karma start spec/config/karma/unit.js

.PHONY: web_integration
web_integration:
node_modules/karma/bin/karma start spec/config/karma/integration.js

.PHONY: worker_unit
worker_unit:
WORKER=true node_modules/karma/bin/karma start spec/config/karma/unit.js

.PHONY: worker_integration
worker_integration:
WORKER=true node_modules/karma/bin/karma start spec/config/karma/integration.js

.PHONY: node_unit
node_unit:
node_modules/webpack/bin/webpack.js --config=spec/config/jasmine/webpack.unit.js && \
node_modules/.bin/jasmine --config=spec/config/jasmine/unit.json

.PHONY: node_integration
node_integration:
node_modules/webpack/bin/webpack.js --config=spec/config/jasmine/webpack.integration.js && \
node_modules/.bin/jasmine --config=spec/config/jasmine/integration.json

.PHONY: serve
serve:
node webpack/dev.server.js

.PHONY: react-native build_all

0 comments on commit 2bac142

Please sign in to comment.