-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/theosanderson/gensplore
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Release Gensplore Component | ||
|
||
on: | ||
release: | ||
types: [created] | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Check out code | ||
uses: actions/checkout@v2 | ||
|
||
- name: Use Node.js | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 18 | ||
|
||
- name: Install jq | ||
run: sudo apt-get install jq | ||
|
||
- name: Update package version and release | ||
run: | | ||
cd taxonium_component | ||
TAG_NAME=${GITHUB_REF#refs/tags/} | ||
echo "Current tag is $TAG_NAME" | ||
jq ".version = \"$TAG_NAME\"" package.json > package.json.tmp && mv package.json.tmp package.json | ||
yarn install | ||
yarn build | ||
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc | ||
npm publish | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
NODE_OPTIONS: --max-old-space-size=4096 |
9e0f549
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully deployed to the following URLs:
genbank-view – ./
gensplore.theo.io
genbank-view.vercel.app
genbank-view-git-main-theosanderson.vercel.app
gensplore.genomium.org
genbank-view-theosanderson.vercel.app