Skip to content

Merge pull request #142 from icgc-argo/rc/4.0.0 #58

Merge pull request #142 from icgc-argo/rc/4.0.0

Merge pull request #142 from icgc-argo/rc/4.0.0 #58

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Release
on:
push:
branches: [main]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
Release:
runs-on: ubuntu-latest
steps:
- name: Setup Node.js environment
uses: actions/[email protected]
with:
node-version: 'lts/gallium'
- name: Checkout code
uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- run: cd ./dist && npm publish --access public --dry-run
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Git tag
run: |
export UIKIT_VERSION=$(cat ./package.json | jq '.version' | sed -e 's/"//' -e 's/"//')
git tag ${UIKIT_VERSION}
git push https://${{ secrets.GIT_USERNAME }}:${{ secrets.GIT_PASSWORD }}@github.com/icgc-argo/uikit --tags