-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(package): update dependencies and switch to automatic release
release-npm
- Loading branch information
Showing
20 changed files
with
160 additions
and
421 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,41 @@ | ||
name: push | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
|
||
jobs: | ||
test-publish-build-release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- run: npm install | ||
- name: 🛠️ Build Demo | ||
run: | | ||
cd demo | ||
npm install | ||
npx papua build | ||
- name: 🚀 Deploy Demo | ||
uses: JamesIves/github-pages-deploy-action@v4 | ||
with: | ||
branch: demo | ||
folder: demo/dist | ||
- name: 🖥️ Serve Demo for Test | ||
run: | | ||
cd demo | ||
# The & at the end ensures that the command exits | ||
# and the server continues in the background. | ||
npx papua serve & | ||
- name: 🌲 Cypress Test | ||
uses: cypress-io/github-action@v2 | ||
with: | ||
install: false | ||
# Wait for server above to start before testing. | ||
wait-on: 'http://localhost:3000' | ||
wait-on-timeout: 240 | ||
- name: 🚧 Build | ||
run: npm run build | ||
- name: 📢 Release | ||
uses: tobua/release-npm-action@v1 | ||
with: | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
Oops, something went wrong.