Skip to content

Commit

Permalink
Automate node package release
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanking13 authored Jun 21, 2022
1 parent 8de2a04 commit 307dc15
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
14 changes: 14 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,20 @@ jobs:
tar cjf pyodide-build-${CIRCLE_TAG}.tar.bz2 pyodide/
ghr -t "${GITHUB_TOKEN}" -u "${CIRCLE_PROJECT_USERNAME}" -r "${CIRCLE_PROJECT_REPONAME}" -c "${CIRCLE_SHA1}" -delete "${CIRCLE_TAG}" ./pyodide-build-${CIRCLE_TAG}.tar.bz2
- run:
name: Deploy pyodide.js to NPM
command: |
echo "//registry.npmjs.org/:_authToken=${NPM_PUBLISH_TOKEN}" > ~/.npmrc
cd src/js
export JS_VERSION=$(node -p "require('./package.json').version")
if [[ ${JS_VERSION} =~ [alpha|beta|rc|dev] ]]; then
npm publish --tag next
else
npm publish
npm dist-tag add pyodide@${JS_VERSION} next
fi
- run:
name: Set PYODIDE_BASE_URL
command: PYODIDE_BASE_URL="https://cdn.jsdelivr.net/pyodide/v${CIRCLE_TAG}/full/" make update_base_url
Expand Down
2 changes: 1 addition & 1 deletion src/js/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "pyodide",
"name": "ryanking13-pyodide",
"version": "0.21.0-dev.0",
"description": "The Pyodide JavaScript package",
"keywords": [
Expand Down

0 comments on commit 307dc15

Please sign in to comment.