Skip to content

Commit

Permalink
Edit workflows (#100)
Browse files Browse the repository at this point in the history
# Description

Remove link-check from Checks workflow. The Nuxt SEO module already has
a link-checker that will run on build.

Add environment to workflows to provide configuration for workflows.
Workflows will display by environments and hook up with slack
notifications for deployments.
  • Loading branch information
itsacoyote authored Jun 4, 2024
1 parent 38cb61e commit 1e22d31
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 60 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/checks.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -53,23 +53,3 @@ jobs:
run: bun install
- name: Runs ESLint
run: bun run lint:eslint

link-check:
env:
NUXT_UI_PRO_LICENSE: ${{ secrets.NUXT_UI_PRO_LICENSE }}
name: link_check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4 # v4

- uses: oven-sh/setup-bun@v1

- name: "Install dependencies"
run: bun install

- name: "Build site"
run: bun run build

- uses: untitaker/hyperlink@0.1.32
with:
args: .output/public/ --sources content/
9 changes: 1 addition & 8 deletions .github/workflows/deploy-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
NUXT_UI_PRO_LICENSE: ${{ secrets.NUXT_UI_PRO_LICENSE }}
if: ${{ github.event.repository.full_name == github.repository }}
runs-on: ubuntu-latest
environment: prod
environment: production
steps:
- uses: actions/checkout@v4 # v4
with:
Expand All @@ -33,10 +33,3 @@ jobs:
target: prod
projectId: zksync-docs
channelId: live

# TODO: Implement reindex task tracking instead of blindly exiting on task submit
# - name: Trigger Algolia reindex
# run: |
# curl -X POST "${{ secrets.ALGOLIA_CRAWLER_BASE_URL }}/crawlers/${{ secrets.ALGOLIA_CRAWLER_ID }}/reindex" \
# -H "Content-Type: application/json" \
# --user "${{ secrets.ALGOLIA_CRAWLER_USER_ID }}:${{ secrets.ALGOLIA_CRAWLER_API_KEY }}"
1 change: 1 addition & 0 deletions .github/workflows/deploy-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ jobs:
env:
NUXT_UI_PRO_LICENSE: ${{ secrets.NUXT_UI_PRO_LICENSE }}
if: ${{ github.event.repository.full_name == github.repository }}
environment: staging
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4 # v4
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ jobs:
- uses: oven-sh/setup-bun@v1

- name: "Install dependencies"
run: bun install --frozen-lockfile
run: bun install --production --frozen-lockfile

- name: "Release"
run: bun run release
run: bunx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23 changes: 1 addition & 22 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,6 @@
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
[
"@semantic-release/npm",
{
"npmPublish": false
}
],
[
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md"
}
],
"@semantic-release/github",
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"package.json"
]
}
]
"@semantic-release/github"
]
}
Binary file modified bun.lockb
Binary file not shown.
9 changes: 1 addition & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,6 @@
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/commit-analyzer": "^12.0.0",
"@semantic-release/git": "^10.0.1",
"@semantic-release/github": "^10.0.4",
"@semantic-release/release-notes-generator": "^13.0.0",
"@types/bun": "^1.0.8",
"@vue/test-utils": "^2.4.5",
"cspell": "^8.6.0",
Expand All @@ -23,7 +18,6 @@
"particles.vue3": "^2.12.0",
"prettier": "^3.1.0",
"prettier-plugin-tailwindcss": "^0.5.12",
"semantic-release": "^23.1.1",
"vue-tsc": "^2.0.6"
},
"peerDependencies": {
Expand Down Expand Up @@ -57,7 +51,6 @@
"fix:prettier": "prettier --write .",
"prepare": "node .husky/install.mjs",
"postinstall": "nuxt prepare",
"ci:check": "bun run lint:eslint && bun run lint:prettier && bun run lint:spelling && bun run lint:markdown",
"release": "semantic-release"
"ci:check": "bun run lint:eslint && bun run lint:prettier && bun run lint:spelling && bun run lint:markdown"
}
}

0 comments on commit 1e22d31

Please sign in to comment.