-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup admin ui to publish a next tag on commit to main. (#93)
- Loading branch information
1 parent
ae44660
commit 4ffe069
Showing
3 changed files
with
54 additions
and
7 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,52 @@ | ||
name: Test & Publish Next | ||
|
||
on: | ||
# The build will be triggered on push to main | ||
push: | ||
branches: | ||
- main | ||
|
||
concurrency: | ||
group: test-build-${{ github.ref_name }}-${{ github.event_name }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
test-and-tag: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
|
||
- name: Install Node.js π» | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: 18 | ||
registry-url: https://registry.npmjs.org/ | ||
|
||
- name: Set up Python π | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.10" | ||
|
||
- name: Set up Dunamai πͺ | ||
run: pip install -r requirements-ci.txt | ||
|
||
- name: Install locked dependencies π§ | ||
run: npm ci | ||
|
||
- name: Version β | ||
run: npm version --no-git-tag-version $(dunamai from git --style semver) | ||
|
||
- name: Test π§ͺ | ||
env: | ||
TZ: America/New_York | ||
run: npm test | ||
|
||
- name: Publish π | ||
run: npm publish --tag next --access public | ||
env: | ||
NODE_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
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 @@ | ||
dunamai==1.19.0 |