Merge pull request #19 from feelpp/feature/compilation #12
Workflow file for this run
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: Release | |
on: | |
push: | |
tags: | |
- 'v*' # Push events to matching v*, i.e. v1.0, v2.1.3 | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
- name: Install dependencies | |
run: | | |
npm ci | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.10' | |
- run: pip install ipython plotly pandas | |
- name: Test | |
run: | | |
npm t | |
publish: | |
needs: build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: 18 | |
# install dependencies | |
- name: Install dependencies | |
run: | | |
npm ci | |
# package and publish | |
- name: Package and publish | |
env: | |
NPM_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }} | |
run: | | |
./tasks/publish.sh | |
# create the GitHub release | |
- name: Create release | |
id: create_release | |
uses: actions/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ github.ref }} | |
release_name: "${{ github.ref }}" | |
draft: false | |
prerelease: false |