-
Notifications
You must be signed in to change notification settings - Fork 22
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
Showing
1 changed file
with
58 additions
and
58 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 |
---|---|---|
|
@@ -35,61 +35,61 @@ jobs: | |
# - name: Test Code | ||
# run: npm run test -- --watchAll=false | ||
|
||
build: | ||
needs: [test] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 19.7 | ||
|
||
- name: Setup Git | ||
run: | | ||
git config --local user.name cfl-bot | ||
git config --local user.email [email protected] | ||
# TODO: cache node packages | ||
- name: Install Node Packages | ||
run: npm install --only=dev | ||
|
||
- name: Build Package | ||
run: npm run build | ||
|
||
- name: Push Build Files | ||
run: | | ||
git add lib/* | ||
if ! git diff --staged --quiet; then | ||
git commit -m "push build files [skip ci]" | ||
git push | ||
fi | ||
release: | ||
needs: [build] | ||
concurrency: release | ||
runs-on: ubuntu-latest | ||
if: github.ref == 'refs/heads/main' | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
fetch-depth: 0 | ||
|
||
- name: Pull Build Files | ||
run: git pull | ||
|
||
- uses: actions/setup-node@v3 | ||
with: | ||
node-version: 19.7 | ||
|
||
# TODO: group release dependencies | ||
- name: Install Node Packages | ||
run: npm install --only=dev | ||
|
||
- name: Publish Semantic Release | ||
env: | ||
GH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
run: npx semantic-release | ||
# build: | ||
# needs: [test] | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# with: | ||
# token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
|
||
# - uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: 19.7 | ||
|
||
# - name: Setup Git | ||
# run: | | ||
# git config --local user.name cfl-bot | ||
# git config --local user.email [email protected] | ||
|
||
# # TODO: cache node packages | ||
# - name: Install Node Packages | ||
# run: npm install --only=dev | ||
|
||
# - name: Build Package | ||
# run: npm run build | ||
|
||
# - name: Push Build Files | ||
# run: | | ||
# git add lib/* | ||
# if ! git diff --staged --quiet; then | ||
# git commit -m "push build files [skip ci]" | ||
# git push | ||
# fi | ||
|
||
# release: | ||
# needs: [build] | ||
# concurrency: release | ||
# runs-on: ubuntu-latest | ||
# if: github.ref == 'refs/heads/main' | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# with: | ||
# token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
# fetch-depth: 0 | ||
|
||
# - name: Pull Build Files | ||
# run: git pull | ||
|
||
# - uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: 19.7 | ||
|
||
# # TODO: group release dependencies | ||
# - name: Install Node Packages | ||
# run: npm install --only=dev | ||
|
||
# - name: Publish Semantic Release | ||
# env: | ||
# GH_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
# run: npx semantic-release |