mirror of
https://github.com/remko/waforth
synced 2025-01-14 08:01:34 +01:00
39 lines
No EOL
1.1 KiB
YAML
39 lines
No EOL
1.1 KiB
YAML
name: Publish Release
|
|
|
|
on:
|
|
release:
|
|
types: [created]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 16
|
|
cache: 'yarn'
|
|
- run: |
|
|
curl -L -s https://github.com/WebAssembly/wabt/releases/download/1.0.27/wabt-1.0.27-ubuntu.tar.gz | tar xvz -C /tmp
|
|
sudo mv /tmp/wabt-1.0.27/bin/* /usr/local/bin
|
|
- run: yarnpkg --pure-lockfile
|
|
- run: yarnpkg build
|
|
- run: yarnpkg lint
|
|
- run: yarnpkg test --coverage
|
|
|
|
publish-npm:
|
|
needs: build
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v2
|
|
with:
|
|
node-version: 16
|
|
cache: 'yarn'
|
|
- run: |
|
|
curl -L -s https://github.com/WebAssembly/wabt/releases/download/1.0.27/wabt-1.0.27-ubuntu.tar.gz | tar xvz -C /tmp
|
|
sudo mv /tmp/wabt-1.0.27/bin/* /usr/local/bin
|
|
- run: yarnpkg --pure-lockfile
|
|
- run: yarnpkg publish --non-interactive
|
|
env:
|
|
NPM_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |