-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAINT - Pre-release maintenance (#294)
* 👷 Update workflows * 🔧 Bump Docker tag * 📝 Update documentation * 📝 Document release process
- Loading branch information
Showing
6 changed files
with
101 additions
and
79 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
32 changes: 15 additions & 17 deletions
32
.github/workflows/deploy.yml → .github/workflows/release.yml
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 |
---|---|---|
@@ -1,45 +1,43 @@ | ||
name: Deploy | ||
name: Release conda-store-ui | ||
|
||
on: | ||
release: | ||
types: [published] | ||
workflow_dispatch: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
|
||
jobs: | ||
|
||
call-build: | ||
uses: conda-incubator/conda-store-ui/.github/workflows/build.yml@main | ||
|
||
deploy-build: | ||
make-release: | ||
runs-on: ubuntu-latest | ||
# ensure that the artifacts are available from the build job | ||
needs: call-build | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/Checkout@v3 | ||
- name: "Checkout repository 🛎" | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set release tag | ||
- name: "Get release tag 🏷" | ||
run: echo "RELEASE_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | ||
|
||
- name: Get dependencies for tsc | ||
- name: "Install dependencies 📦" | ||
run: yarn | ||
|
||
- name: Lint code | ||
- name: "Lint code 🔎" | ||
run: yarn eslint:check | ||
|
||
- name: Download generated dist | ||
- name: "Download webpack bundle 📦" | ||
uses: actions/download-artifact@v3 | ||
with: | ||
name: webpack-bundle | ||
path: dist/ | ||
|
||
# - name: Set package new-version | ||
# run: yarn version --new-version ${{ env.RELEASE_TAG }} | ||
|
||
- name: Generate package tarball | ||
- name: "Generate package tarball 📦" | ||
run: yarn pack --filename conda-store-ui.tgz | ||
|
||
- name: Upload to npm | ||
- name: "Upload to npm 📤" | ||
run: yarn publish --verbose --access public --tag ${{ env.RELEASE_TAG }} conda-store-ui.tgz | ||
env: | ||
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
FROM node:16.16-alpine3.15 | ||
FROM node:16.16-alpine3.18 | ||
|
||
WORKDIR /usr/src/app | ||
|
||
|
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
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 |
---|---|---|
@@ -1,19 +1,22 @@ | ||
# manual release | ||
# Manual release process | ||
|
||
1. increment version in package.json | ||
2. run | ||
```bash | ||
# do a dry run first to check | ||
npm publish --access public --dry-run | ||
1. Increment version in `package.json` | ||
2. Perform a local dry run build: | ||
|
||
```bash | ||
# dry run build | ||
npm publish --access public --dry-run | ||
|
||
# the real publish-to-npmjs command | ||
npm publish --access public | ||
``` | ||
|
||
3. Ensure that whatever code you published is checked into git, then tag and push the commit and tag | ||
|
||
# the real publish-to-npmjs command | ||
npm publish --access public | ||
``` | ||
3. ensure that whatever code you just publish is checked into git, then tag and push the commit and tag | ||
```bash | ||
# use the same version here as in package.json, but with a leading `v` | ||
git tag -a vx.y.z | ||
# use the same version here as in package.json, but without a leading `v` | ||
git tag -a YYYY.M.ReleaseNumber | ||
|
||
# push both any unpushed commits and the new tag | ||
# push to upstream | ||
git push && git push --tags | ||
``` |
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