-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6e30fda
commit d1718b6
Showing
5 changed files
with
102 additions
and
104 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,43 @@ | ||
name: Alpha Release | ||
|
||
permissions: | ||
contents: write | ||
|
||
on: workflow_dispatch | ||
|
||
jobs: | ||
release: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: "18.x" | ||
registry-url: "https://npm.pkg.github.com" | ||
|
||
- name: Install | ||
run: npm ci | ||
|
||
- name: Update Docs | ||
run: npm run docs | ||
|
||
- name: Run build | ||
run: npm run build | ||
|
||
- name: Get next version | ||
run: echo "NEXT=0.0.1-alpha.$(echo $(npm run release:alpha:next | tail -n 1))" >> $GITHUB_ENV | ||
|
||
- name: Print next version | ||
run: echo ${{ env.NEXT }} | ||
|
||
- name: Echo upstream remote | ||
run: git remote -v | ||
|
||
- name: Push upstream | ||
run: git push origin main --tags | ||
|
||
- run: npm publish | ||
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,8 @@ | ||
name: CI | ||
|
||
permissions: | ||
contents: read | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
Oops, something went wrong.