-
Notifications
You must be signed in to change notification settings - Fork 21
42 lines (33 loc) · 1.02 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: Release conda-store-ui
on:
# we want to make a release whenever a new tag is created
push:
tags:
- "*"
jobs:
call-build:
uses: conda-incubator/conda-store-ui/.github/workflows/build.yml@main
make-release:
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: "Install dependencies 📦"
run: yarn
- name: "Lint code 🔎"
run: yarn eslint:check
- name: "Download webpack bundle 📦"
uses: actions/download-artifact@v3
with:
name: webpack-bundle
path: dist/
- name: "Generate package tarball 📦"
run: yarn pack --filename conda-store-ui.tgz
- name: "Publish to npm 📤"
run: |
echo "Publishing with tag ${{ env.GITHUB_REF_NAME }}"
yarn publish --access public --verbose
env:
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}