Skip to content

Commit

Permalink
Test to master (#33)
Browse files Browse the repository at this point in the history
DN-8, DN-109
  • Loading branch information
Designaroni authored Jan 16, 2023
2 parents 19ef544 + 2dd30f0 commit 27ff140
Show file tree
Hide file tree
Showing 6 changed files with 2,131 additions and 50 deletions.
2 changes: 1 addition & 1 deletion .github/pull_request_template.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

## How to recreate & verify

[//]: # "Nuerotically list steps needed to recreate the issue. Seperately list steps to verify the fix or verify that all require changes satisfy the ticket requirements."
[//]: # "Neurotically list steps needed to recreate the issue. Separately list steps to verify the fix or verify that all require changes satisfy the ticket requirements."

**Steps to recreate:**

Expand Down
43 changes: 43 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
###
# Run semantic-release only after all tests succeeded!
# - uses permissive GITHUB_TOKEN if we need to restrict the token in the future set permissions mannually
# - in a future step we'll deploy this project to npm
###

name: Release
on:
push:
branches:
- master
- next
- test
jobs:
release:
name: Release
runs-on: ubuntu-latest
# permissions:
# content: write
# issues: write
# pull-requests: write
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16.9.0
- name: Install dependencies
run: yarn install
- name: Lint project
run: yarn lint
# - name: Test project
# run: yarn test
# - name: Build project
# run: yarn build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
35 changes: 35 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"branches": [
"master",
{
"name": "next",
"prelease": true
},
{
"name": "test",
"prelease": true
}
],
"verifyConditions": [
"@semantic-release/git",
"@semantic-release/github"
],
"prepare": [
{
"path": "@semantic-release/git",
"assets": [
"package.json"
],
"message": "build(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
"publish": [
"@semantic-release/github"
],
"success": [
"@semantic-release/github"
],
"fail": [
"@semantic-release/github"
]
}
4 changes: 2 additions & 2 deletions lib/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ export async function getTopLevelPageNames() {
const data = await fetchAPI<FetchJSON["data"]>(
`
query TopLevelPages {
topLevelPages {
topLevelPages(sort: "id:asc") {
data {
attributes {
name
Expand Down Expand Up @@ -668,7 +668,7 @@ export async function getTopLevelPageData() {
const data = await fetchAPI<FetchJSON["data"]>(
`
query TopLevelPages {
topLevelPages(filters: { name: { notContains: "About" } }) {
topLevelPages(filters: { name: { notContains: "About" } }, sort: "id:asc") {
data {
attributes {
heroImage {
Expand Down
11 changes: 11 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
{
"name": "designaroni-next",
"description": "A NextJS Frontend Application",
"author": {
"name": "Ian Roberts"
},
"license": "MIT",
"version": "0.1.0",
"repository": {
"type": "git",
"url": "https://github.com/designaroni/designaroni-next.git"
},
"private": true,
"scripts": {
"local": "yarn dev",
Expand Down Expand Up @@ -39,6 +48,7 @@
"@commitlint/cli": "^17.3.0",
"@commitlint/config-conventional": "^17.3.0",
"@commitlint/cz-commitlint": "^17.3.0",
"@semantic-release/git": "^10.0.1",
"@types/node": "17.0.23",
"@types/react": "18.0.0",
"@types/react-dom": "18.0.0",
Expand All @@ -54,6 +64,7 @@
"eslint-plugin-react-hooks": "^4.3.0",
"husky": "^8.0.2",
"prettier": "2.6.2",
"semantic-release": "^19.0.5",
"stylelint-config-css-modules": "^4.1.0",
"typescript": "4.6.3"
}
Expand Down
Loading

1 comment on commit 27ff140

@vercel
Copy link

@vercel vercel bot commented on 27ff140 Jan 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

designaroni-next – ./

designaroni-next-designaroni.vercel.app
designaroni.com
designaroni-next-git-master-designaroni.vercel.app

Please sign in to comment.