This repository has been archived by the owner on Mar 17, 2024. It is now read-only.
Added engines property to list supported versions #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Create snapshot release | |
on: | |
push: | |
branches: | |
- develop | |
repository_dispatch: | |
types: | |
- snapshot-release | |
jobs: | |
test: | |
strategy: | |
matrix: | |
os: [ ubuntu-latest, windows-latest, macos-latest ] | |
node: [ 16 ] | |
runs-on: ${{matrix.os}} | |
steps: | |
- name: Set up Git repository | |
uses: actions/checkout@v2 | |
- name: Set up node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{matrix.node}} | |
- name: Install | |
run: npm ci | |
- name: Compile | |
run: npm run compile | |
- name: Run tests | |
uses: GabrielBB/xvfb-action@v1 | |
with: | |
run: npm test | |
deploy: | |
needs: | |
- test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Set up Git repository | |
uses: actions/checkout@v2 | |
- name: Set up node | |
uses: actions/setup-node@v2 | |
with: | |
node-version: 16 | |
registry-url: 'https://registry.npmjs.org' | |
- name: Install | |
run: npm ci | |
- name: Create snapshot release | |
run: bash ./.build/pre-release.sh | |
- name: Publish snapshot release to npm | |
run: | | |
npm whoami | |
npm run publish-next | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |