Skip to content

Commit

Permalink
ENH - Update release workflow (#297)
Browse files Browse the repository at this point in the history
  • Loading branch information
trallard authored Sep 19, 2023
1 parent ee2eb56 commit 36c69ca
Showing 1 changed file with 10 additions and 29 deletions.
39 changes: 10 additions & 29 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,40 +4,21 @@ on:
release:
types: [published]
workflow_dispatch:

jobs:

call-build:
uses: conda-incubator/conda-store-ui/.github/workflows/build.yml@main

make-release:
jobs:
build:
runs-on: ubuntu-latest
# ensure that the artifacts are available from the build job
needs: call-build

steps:
- name: "Checkout repository 🛎"
uses: actions/checkout@v4

- name: "Get release tag 🏷"
run: echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV

- name: "Install dependencies 📦"
run: yarn

- name: "Lint code 🔎"
run: yarn eslint:check

- name: "Download webpack bundle 📦"
uses: actions/download-artifact@v3
# Setup .npmrc file to publish to npm
- name: "Setup node 🔧"
uses: actions/setup-node@v3
with:
name: webpack-bundle
path: dist/

- name: "Generate package tarball 📦"
run: yarn pack --filename conda-store-ui.tgz

- name: "Upload to npm 📤"
run: yarn publish --verbose --access public --tag ${{ env.RELEASE_TAG }} conda-store-ui.tgz
node-version: "16.x"
registry-url: "https://registry.npmjs.org"
- run: npm ci
- name: "Publish to npm 📦"
run: npm publish --access public
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 36c69ca

Please sign in to comment.