Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update @wasmer/sdk #455

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
64 changes: 6 additions & 58 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,13 @@ jobs:
steps:
# The logic below handles the npm publication:
- name: Checkout Repository
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16
registry-url: "https://registry.npmjs.org"
registry-url: 'https://npm.pkg.github.com'
scope: '@mairech-cc'
- name: Setup Rust
uses: dsherret/rust-toolchain-file@v1
- name: Install wasm-pack
Expand All @@ -63,59 +64,6 @@ jobs:
# Release Please has already incremented versions and published tags, so
# we just need to publish to NPM
- name: Publish to NPM
run: npm publish --access=public
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

publish-to-edge:
name: Publish to Wasmer Edge
runs-on: ubuntu-latest
needs:
- release-please
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v2
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 16
- name: Setup Rust
uses: dsherret/rust-toolchain-file@v1
- name: Install wasm-pack
uses: taiki-e/install-action@wasm-pack
- name: Setup Wasmer
uses: wasmerio/setup-wasmer@v2
- name: Install wasm-strip and wasm-opt
run: sudo apt-get update && sudo apt-get install -y wabt binaryen
- name: Rust Cache
uses: Swatinem/rust-cache@v2
- name: Install @wasmer/sdk Dependencies
run: npm ci
- name: Build @wasmer/sdk
run: npm run build
- name: Generate API Docs
run: npm run docs
- name: Deploy API Docs to wasmer.io
run: wasmer deploy --registry="https://registry.wasmer.io/graphql" --token=${{ secrets.WASMER_CIUSER_PROD_TOKEN }} --non-interactive --no-wait --no-persist-id --publish-package --owner=wasmer-examples
continue-on-error: true
working-directory: docs
- name: Install wasmer.sh dependencies
run: npm ci
working-directory: examples/wasmer.sh
- name: Build wasmer.sh
run: npm run build
working-directory: examples/wasmer.sh
- name: Deploy wasmer.sh to wasmer.io
run: wasmer deploy --registry="https://registry.wasmer.io/graphql" --token=${{ secrets.WASMER_CIUSER_PROD_TOKEN }} --non-interactive --no-wait --no-persist-id --publish-package --owner=wasmer
continue-on-error: true
working-directory: examples/wasmer.sh
- name: Install ffmpeg-react dependencies
run: npm ci
working-directory: examples/ffmpeg-react
- name: Build ffmpeg-react
run: npm run build
working-directory: examples/ffmpeg-react
- name: Deploy ffmpeg-react to wasmer.io
run: wasmer deploy --registry="https://registry.wasmer.io/graphql" --token=${{ secrets.WASMER_CIUSER_PROD_TOKEN }} --non-interactive --no-wait --no-persist-id --publish-package --owner=wasmer-examples
continue-on-error: true
working-directory: examples/ffmpeg-react
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
17 changes: 13 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@wasmer/sdk",
"name": "@mairech-cc/wasmer-sdk",
"version": "0.8.0",
"unpkg": "dist/unpkg.mjs",
"main": "dist/index.mjs",
Expand All @@ -15,12 +15,12 @@
"author": "Wasmer Engineering Team <engineering@wasmer.io>",
"license": "MIT",
"bugs": {
"url": "https://github.com/wasmerio/wasmer-js/issues"
"url": "https://github.com/mairech-cc/wasmer-js/issues"
},
"homepage": "https://github.com/wasmerio/wasmer-js",
"homepage": "https://github.com/mairech-cc/wasmer-js",
"repository": {
"type": "git",
"url": "git+https://github.com/wasmerio/wasmer-js.git"
"url": "git+https://github.com/mairech-cc/wasmer-js.git"
},
"publishConfig": {
"access": "public"
Expand Down
Loading