* publish server * package name * test publish * publish server * publish server * publish server * publish server * publish server * publish server
28 lines
823 B
YAML
28 lines
823 B
YAML
name: Server - Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*.*.*"
|
|
|
|
env:
|
|
node_version: 14
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Use Node.js ${{ env.node_version }}
|
|
uses: actions/setup-node@v2
|
|
with:
|
|
node-version: ${{ env.node_version }}
|
|
# setting a registry enables the NODE_AUTH_TOKEN env variable where we can set an npm token. REQUIRED
|
|
registry-url: "https://registry.npmjs.org"
|
|
- uses: jetli/wasm-pack-action@v0.4.0
|
|
with:
|
|
version: 'latest'
|
|
# see https://stackoverflow.com/questions/58177786/get-the-current-pushed-tag-in-github-actions
|
|
- run: ./scripts/publish-server.sh ${{ github.event.release.tag_name }}
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|