Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: publish example website #11

Merged
merged 6 commits into from
Jul 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/actions/test/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,9 @@ runs:
- name: Compile
shell: bash
run: npm run build
- name: Build Site
shell: bash
working-directory: example-web/react2/
run: |
npm ci
npx webpack
16 changes: 16 additions & 0 deletions .github/workflows/release-on-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,15 @@ permissions:
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance

concurrency:
group: "pages"
cancel-in-progress: false

jobs:
release:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand All @@ -26,3 +33,12 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: "example-web/react2/dist"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
6 changes: 3 additions & 3 deletions .github/workflows/test-on-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@ name: Test on Branch
on:
workflow_dispatch:
push:
branches:
- "!main"
branches-ignore:
- main

jobs:
release:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout
Expand Down
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# ps99-api

[![npm version](https://badge.fury.io/js/ps99-api.svg)](https://badge.fury.io/js/ps99-api)
![Website](https://img.shields.io/website?url=https%3A%2F%2Fjoekiller.github.io%2Fnode-ps99-api)


Pet Simulator Public API wrapper written in Typescript.

## Installation
Expand Down
105 changes: 53 additions & 52 deletions example-web/react/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions example-web/react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
"react": "^18.3.1",
"react-dom": "^18.3.1",
"ts-loader": "^9.5.1",
"typescript": "^5.5.2",
"webpack": "^5.92.0",
"typescript": "^5.5.3",
"webpack": "^5.92.1",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.4"
}
Expand Down
Loading
Loading