Skip to content

wasmerio/wapm-publish

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

WAPM Publish Action

GitHub Workflow Status

GitHub action for publishing to WAPM. Works well with wasmerio/setup-wasmer.

Features

  • Suppresses output (Prevent leaking credentials)
  • Cross platform (Linux, Mac, and Windows)
  • Fully tested

Caveats

Usage

- name: Setup Wasmer
  uses: wasmerio/setup-wasmer@v1

- name: Publish to WAPM
  uses: wasmerio/wapm-publish@v1
  with:
    username: ${{ secrets.WAPM_USERNAME }}
    password: ${{ secrets.WAPM_PASSWORD }}
    # OR with a token that you can generate from https://wapm.io/settings/access-tokens
    token: ${{ secrets.WAPM_TOKEN }}

Input

Name Required Description
token 〰️ WAPM account token
username 〰️ WAPM account username (will be used only if token is not provided)
password 〰️ WAPM access password (will be used only if token is not provided)
directory no Package directory (defaults to the current working directory)
registry no The registry url (defaults to https://registry.wapm.io/)

Output

There is no output from this action

Development

You can develop this action with npm and node:

npm i
WAPM_USERNAME=x WAPM_PASSWORD=y WAPM_TOKEN=z npm test