Publish #10
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
name: Publish | |
on: | |
schedule: | |
- cron: "0 1 * * MON" | |
workflow_dispatch: | |
env: | |
NODE_VERSION: "20" | |
PNPM_VERSION: "8" | |
concurrency: | |
group: "release" | |
cancel-in-progress: false | |
jobs: | |
release: | |
runs-on: ubuntu-22.04 | |
environment: | |
name: Release | |
url: ${{ steps.deployment.outputs.page_url }} | |
permissions: | |
contents: write | |
pages: write | |
id-token: write | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: "true" | |
- uses: pnpm/action-setup@v2 | |
with: | |
version: ${{ env.PNPM_VERSION }} | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ env.NODE_VERSION }} | |
cache: "pnpm" | |
- run: pnpm config set '//registry.npmjs.org/:_authToken' "${NPM_TOKEN}" | |
env: | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
- run: git submodule update --recursive --remote | |
- run: pnpm install --no-frozen-lockfile | |
- run: pnpm run build | |
# - run: pnpm run format | |
- run: pnpm run lint | |
- run: pnpm run test | |
- run: cd packages/ui && ./.scripts/bump-version.mjs && pnpm publish --no-git-checks | |
- uses: actions/configure-pages@v3 | |
- uses: actions/upload-pages-artifact@v2 | |
with: | |
path: "./apps/www/dist" | |
- id: deployment | |
uses: actions/deploy-pages@v2 | |
- uses: EndBug/add-and-commit@v9 | |
with: | |
committer_name: GitHub Actions | |
committer_email: actions@github.com | |
message: "message" | |
- uses: Klemensas/action-autotag@stable | |
with: | |
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | |
package_root: "packages/ui" | |
tag_prefix: "@lshay/ui@" |