diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..5cd5784 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,25 @@ +--- +name: CI +on: + pull_request: + branches: + - main +permissions: + contents: read +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Install Node + uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + - name: Install dependencies + run: npm ci + - name: Build + run: npm run build diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000..01c9d70 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,39 @@ +--- +name: Deploy to Pages +on: + push: + branches: ["main"] + workflow_dispatch: +permissions: + contents: read + pages: write + id-token: write +concurrency: + group: "pages" + cancel-in-progress: false +jobs: + deploy: + environment: + name: github-pages + url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + - name: Install Node + uses: actions/setup-node@v4 + with: + node-version-file: .nvmrc + - name: Install dependencies + run: npm ci + - name: Build + run: npm run build + - name: Setup Pages + uses: actions/configure-pages@v4 + - name: Upload artifact + uses: actions/upload-pages-artifact@v3 + with: + path: './dist' + - name: Deploy to GitHub Pages + id: deployment + uses: actions/deploy-pages@v4 diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..2dbbe00 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +20.11.1 diff --git a/.parcelrc b/.parcelrc new file mode 100644 index 0000000..40540d0 --- /dev/null +++ b/.parcelrc @@ -0,0 +1,6 @@ +{ + "extends": ["@parcel/config-default"], + "optimizers": { + "*.css": [] + } +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 36fe42b..6be26d0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.0", "license": "ISC", "dependencies": { - "@etchteam/diamond-ui": "1.25.2" + "@etchteam/diamond-ui": "^1.27.2" }, "devDependencies": { "@parcel/packager-raw-url": "2.11.0", @@ -180,9 +180,9 @@ } }, "node_modules/@etchteam/diamond-ui": { - "version": "1.25.2", - "resolved": "https://registry.npmjs.org/@etchteam/diamond-ui/-/diamond-ui-1.25.2.tgz", - "integrity": "sha512-575rD3HGv66HWiZyU+xjXpKDYFdP5ZFl3qUf6vHsaeGffvey0nxyL1SAOfiIi6ifxh9DRyGg2XIXVHSxQ/FuHA==", + "version": "1.27.2", + "resolved": "https://registry.npmjs.org/@etchteam/diamond-ui/-/diamond-ui-1.27.2.tgz", + "integrity": "sha512-PvI5J2Rsg+On+gfW12bNhVmB8FyRSk6OvYlGfQOZ/ZlrWlZp2fqu0bE0upX7UUDggysOGsJjfhCBJa9iiMPlLg==", "dependencies": { "lit": "^3.1.0", "modern-normalize": "2.0.0" diff --git a/package.json b/package.json index cd6edcf..490ba0e 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,6 @@ "parcel": "2.11.0" }, "dependencies": { - "@etchteam/diamond-ui": "1.25.2" + "@etchteam/diamond-ui": "^1.27.2" } }