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

chore: refine project settings #12

Merged
merged 1 commit into from
Mar 16, 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
11 changes: 6 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ on:
# Trigger the workflow every time you push to the `main` branch
# Using a different branch name? Replace `main` with your branch’s name
push:
branches: [main]
branches:
- main
# Allows you to run this workflow manually from the Actions tab on GitHub.
workflow_dispatch:

Expand All @@ -22,10 +23,10 @@ jobs:
uses: actions/checkout@v4
- name: Install, build, and upload your site
uses: withastro/action@v2
with:
# path: . # The root location of your Astro project inside the repository. (optional)
# node-version: 20 # The specific version of Node that should be used to build your site. Defaults to 20. (optional)
package-manager: pnpm@8 # The Node package manager that should be used to install dependencies and build your site. Automatically detected based on your lockfile. (optional)
# with:
# path: . # The root location of your Astro project inside the repository
# node-version: 20 # Default
# package-manager: # Determined by `packageManager` in `package.json`

deploy:
needs: build
Expand Down
29 changes: 17 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,28 @@
# 2024
Go Conference 2024
# Go Conference 2024 Website
hytkgami marked this conversation as resolved.
Show resolved Hide resolved

## Getting Started

**Prerequisites**

- [Node.js](https://nodejs.org/en/download/) version 20.x higher
- [pnpm](https://pnpm.io/installation) version 8.x higher
- [Node.js](https://nodejs.org/en/download/): v20.x or higher
- [pnpm](https://pnpm.io/installation): v8.x or higher (use [corepack](https://github.com/nodejs/corepack))

1. Install dependencies.
1. Enable corepack.

```shell
pnpm install
```
```shell
corepack enable
hytkgami marked this conversation as resolved.
Show resolved Hide resolved
```

2. Start the development server.
2. Install dependencies.

```shell
pnpm start
```
```shell
pnpm install
```

3. Start the development server.

```shell
pnpm run dev
```

3. Open `http://localhost:4321` in your browser.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,19 @@
"name": "gocon2024",
"type": "module",
"version": "0.0.1",
"private": true,
"scripts": {
"dev": "astro dev",
"start": "astro dev",
"build": "astro check && astro build",
"preview": "astro preview",
"astro": "astro",
"format": "prettier --write '**/*.{astro,js,mjs,json,ts,yml,yaml}' --plugin=prettier-plugin-astro",
"prepare": "husky install"
},
"engines": {
"node": ">=20",
"pnpm": ">=8"
"node": ">=20"
},
"packageManager": "[email protected]",
"lint-staged": {
"**/*.{astro,js,mjs,json,ts,yml,yaml}": "pnpm run format"
},
Expand Down