-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: update to cliff-jumper v4 and turbo v2
- Loading branch information
Showing
46 changed files
with
1,018 additions
and
380 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
name: Continuous Delivery | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
publish: | ||
name: Publish Next to npm | ||
runs-on: ubuntu-latest | ||
if: github.repository_owner == 'skyra-project' | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
package: | ||
- env-utilities | ||
- http-framework | ||
- http-framework-i18n | ||
- i18next-backend | ||
- influx-utilities | ||
- logger | ||
- reddit-helpers | ||
- safe-fetch | ||
- shared-http-pieces | ||
- shared-influx-pieces | ||
- start-banner | ||
- twitch-helpers | ||
- weather-helpers | ||
steps: | ||
- name: Checkout Project | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
- name: Use Node.js v20 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: yarn | ||
registry-url: https://registry.yarnpkg.com/ | ||
- name: Install Dependencies | ||
run: yarn --immutable | ||
- name: Build all packages | ||
run: yarn build | ||
- name: Bump Versions & Publish | ||
working-directory: packages/${{ matrix.package }} | ||
run: | | ||
yarn config set npmAuthToken ${NODE_AUTH_TOKEN} | ||
yarn config set npmPublishRegistry "https://registry.yarnpkg.com" | ||
yarn bump --preid "next.$(git rev-parse --verify --short HEAD)" --skip-changelog | ||
yarn npm publish --tag next | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: Publish | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
package: | ||
description: The package to release, this should be the path segment after packages/, without the @sapphire/ prefix | ||
required: true | ||
|
||
jobs: | ||
PublishPackage: | ||
name: Publish @skyra/${{ github.event.inputs.package}} | ||
runs-on: ubuntu-latest | ||
if: github.repository_owner == 'skyra-project' | ||
steps: | ||
- name: Checkout Project | ||
uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 | ||
ref: main | ||
token: ${{ secrets.SKYRA_TOKEN }} | ||
- name: Use Node.js v20 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: yarn | ||
registry-url: https://registry.yarnpkg.com/ | ||
- name: Install Dependencies | ||
run: yarn --immutable | ||
- name: Configure Git | ||
run: | | ||
git remote set-url origin "https://${GITHUB_TOKEN}:x-oauth-basic@github.com/${GITHUB_REPOSITORY}.git" | ||
git config --local user.email "${GITHUB_EMAIL}" | ||
git config --local user.name "${GITHUB_USER}" | ||
env: | ||
GITHUB_USER: github-actions[bot] | ||
GITHUB_EMAIL: 41898282+github-actions[bot]@users.noreply.github.com | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Bump Versions and make release | ||
run: yarn bump | ||
working-directory: packages/${{ github.event.inputs.package }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
- name: Publish to NPM | ||
working-directory: packages/${{ github.event.inputs.package }} | ||
run: | | ||
yarn config set npmAuthToken ${NODE_AUTH_TOKEN} | ||
yarn config set npmPublishRegistry "https://registry.yarnpkg.com" | ||
yarn npm publish | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.