Skip to content

release

release #23

Workflow file for this run

name: release
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- 'v*' # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
create_release:
name: Create release
runs-on: ubuntu-latest
steps:
- name: Create release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
npm_publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run lint
- run: npm run test
- run: npm run tsc
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
linux:
runs-on: ubuntu-latest
steps:
- name: Checkout reposistory
uses: actions/checkout@v3
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Use Node.js
env:
DEFAULT_DELAY: 50
uses: actions/setup-node@v3
with:
node-version: '18.x'
- run: npm install
- run: npm run lint
- run: npm run test
- run: bash ./scripts/package.sh true true
- name: Upload Release Asset
uses: alexellis/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_paths: '["build/*/*.tar.gz"]'
windows:
runs-on: windows-latest
steps:
- name: Checkout reposistory
uses: actions/checkout@v3
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Use Node.js
env:
DEFAULT_DELAY: 50
uses: actions/setup-node@v3
with:
node-version: '18.x'
- run: npm install
- run: npm run lint
- run: npm run test
- run: bash ./scripts/package.sh true true
- name: Upload Release Asset
uses: alexellis/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_paths: '["build/*/*.zip"]'
macos:
runs-on: macos-latest
steps:
- name: Checkout reposistory
uses: actions/checkout@v3
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Use Node.js
env:
DEFAULT_DELAY: 50
uses: actions/setup-node@v3
with:
node-version: '18.x'
- run: npm install
- run: npm run lint
- run: npm run test
- run: bash ./scripts/package.sh true true
- name: Upload Release Asset
uses: alexellis/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
asset_paths: '["build/*/*.pkg"]'
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18.x'
- run: DOCKER_PASSWORD=${{ secrets.DOCKERHUB_TOKEN }} DOCKER_USERNAME=${{ secrets.DOCKERHUB_USERNAME }} bash scripts/docker.sh