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

Improves GitHub Actions workflow #89

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
4 changes: 4 additions & 0 deletions .github/workflows/deploy-theme.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ jobs:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: 18
- run: npm ci
- name: Deploy Ghost Theme
uses: TryGhost/action-deploy-theme@v1
with:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,5 @@ projectFilesBackup

.DS_Store

dist/
dist/
assets/built/
2 changes: 0 additions & 2 deletions assets/built/index.css

This file was deleted.

1 change: 0 additions & 1 deletion assets/built/index.css.map

This file was deleted.

2 changes: 0 additions & 2 deletions assets/built/index.js

This file was deleted.

1 change: 0 additions & 1 deletion assets/built/index.js.map

This file was deleted.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"build": "rollup -c --environment BUILD:production",
"zip": "npm run build && bestzip $npm_package_name.zip assets/* partials/* members/* *.hbs package.json",
"test": "npx gscan .",
"pretest": "npm run build"
"pretest": "npm run build",
"postinstall": "npm run build"
},
"author": {
"name": "Ghost Foundation",
Expand Down