Skip to content

Commit

Permalink
update package.json meta info
Browse files Browse the repository at this point in the history
  • Loading branch information
westerandr committed Apr 13, 2024
1 parent 2c07006 commit ea82fc8
Show file tree
Hide file tree
Showing 8 changed files with 42 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,5 @@ yarn.lock

.vscode/settings.json
jsconfig.json
package.json
package.json
vercel.json
22 changes: 22 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Production Tag Deployment
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
# Pattern matched against refs/tags
tags:
- '*' # Push events to every tag not containing /
jobs:
Deploy-Production:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install Vercel CLI
run: npm install --global vercel@latest
- name: Pull Vercel Environment Information
run: vercel pull --yes --environment=production --token=${{ secrets.VERCEL_TOKEN }}
- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}
- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "ssfo-website",
"version": "0.0.1",
"name": "samoacodehub-website",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "vite dev",
Expand Down
2 changes: 1 addition & 1 deletion src/lib/components/Contact.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
</script>

<section id={Section.Contact} class="px-3 py-5 rounded-none lg:py-10 lg:px-5 card bg-surface-400">
<div class="grid justify-center gap-4 p-10 ">
<div class="grid justify-center gap-4 p-10">
<h1 class="font-bold text-center h1">Contact Us</h1>
<h3>Any questions or remarks? Just write us a message!</h3>
</div>
Expand Down
5 changes: 4 additions & 1 deletion src/lib/components/Projects.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@
import { IconBrandGithubFilled, IconClick } from '@tabler/icons-svelte';
</script>

<div id={Section.Projects} class="container px-5 py-2 lg:px-32 lg:py-24 bg-transparent mx-auto w-full">
<div
id={Section.Projects}
class="container px-5 py-2 lg:px-32 lg:py-24 bg-transparent mx-auto w-full"
>
<h1 class="text-4xl font-bold text-center pb-8">Featured Projects</h1>

<div class="grid grid-cols-1 md:grid-cols-2 gap-8">
Expand Down
2 changes: 1 addition & 1 deletion src/lib/utils/menuItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export const Section = {
Contributors: 'Contributors',
Contact: 'Contact',
About: 'About',
Projects: 'Projects',
Projects: 'Projects'
};

export const menuItems = [
Expand Down
5 changes: 3 additions & 2 deletions tests/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ test('Hero section has expected p', async ({ page }) => {
).toBeVisible();
});


test('Clicking "Projects" button navigates to projects page and displays Featured Projects h1', async ({ page }) => {
test('Clicking "Projects" button navigates to projects page and displays Featured Projects h1', async ({
page
}) => {
await page.goto('/');
await page.click('text=Projects');
await expect(page.locator('h1:has-text("Featured Projects")')).toBeVisible();
Expand Down
7 changes: 7 additions & 0 deletions vercel.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"git": {
"deploymentEnabled": {
"main": false
}
}
}

0 comments on commit ea82fc8

Please sign in to comment.