From 804e5234537b6920756901ace8f6c9b8d4a2ad1a Mon Sep 17 00:00:00 2001 From: Laurens Weijs Date: Thu, 22 Aug 2024 16:43:08 +0200 Subject: [PATCH] Cleanup build street --- .github/workflows/continuous-deployment.yml | 131 ++++++++++---------- proprietary/design-tokens/package.json | 2 - 2 files changed, 65 insertions(+), 68 deletions(-) diff --git a/.github/workflows/continuous-deployment.yml b/.github/workflows/continuous-deployment.yml index fd7c6a6..46ac550 100644 --- a/.github/workflows/continuous-deployment.yml +++ b/.github/workflows/continuous-deployment.yml @@ -101,69 +101,68 @@ jobs: - name: "Continuous Integration: test" run: pnpm run test - - publish-website: - runs-on: ubuntu-latest - needs: build - if: github.ref == 'refs/heads/main' - - environment: - name: github-pages - url: ${{ steps.deploy-pages.outputs.page_url }} - - permissions: - pages: write - id-token: write - - steps: - - name: Deploy to GitHub Pages - id: deploy-pages - uses: actions/deploy-pages@v4 - - publish-npm: - runs-on: ubuntu-latest - needs: [lint, test] - if: github.ref == 'refs/heads/main' - - steps: - - name: Checkout release branch - uses: actions/checkout@v4 - with: - token: ${{ secrets.GH_TOKEN }} - - - name: Install pnpm package manager - uses: pnpm/action-setup@v4 - - - name: Set up Node.js version - uses: actions/setup-node@v4 - with: - node-version-file: .nvmrc - cache: pnpm - - - name: "Continuous Deployment: install" - run: | - pnpm install --frozen-lockfile - pnpm ls --recursive - - - name: "Continuous Deployment: build" - run: pnpm run build - - # lets exclude this for now... - # - name: "Continuous Deployment: publish to GitHub repository" - # env: - # GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - # GIT_AUTHOR_EMAIL: "" - # GIT_AUTHOR_NAME: "NL Design System" - # GIT_COMMITTER_EMAIL: "" - # GIT_COMMITTER_NAME: "NL Design System" - # run: | - # git push --set-upstream origin HEAD - # pnpm run release - - - name: "Continuous Deployment: publish to npm" - env: - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: | - pnpm config set "//registry.npmjs.org/:_authToken" "${NPM_TOKEN}" - pnpm run publish - pnpm config delete "//registry.npmjs.org/:_authToken" +# publish-website: +# runs-on: ubuntu-latest +# needs: build +# if: github.ref == 'refs/heads/main' +# +# environment: +# name: github-pages +# url: ${{ steps.deploy-pages.outputs.page_url }} +# +# permissions: +# pages: write +# id-token: write +# +# steps: +# - name: Deploy to GitHub Pages +# id: deploy-pages +# uses: actions/deploy-pages@v4 + +# publish-npm: +# runs-on: ubuntu-latest +# needs: [lint, test] +# if: github.ref == 'refs/heads/main' +# +# steps: +# - name: Checkout release branch +# uses: actions/checkout@v4 +# with: +# token: ${{ secrets.GH_TOKEN }} +# +# - name: Install pnpm package manager +# uses: pnpm/action-setup@v4 +# +# - name: Set up Node.js version +# uses: actions/setup-node@v4 +# with: +# node-version-file: .nvmrc +# cache: pnpm +# +# - name: "Continuous Deployment: install" +# run: | +# pnpm install --frozen-lockfile +# pnpm ls --recursive +# +# - name: "Continuous Deployment: build" +# run: pnpm run build + +# lets exclude this for now... +# - name: "Continuous Deployment: publish to GitHub repository" +# env: +# GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} +# GIT_AUTHOR_EMAIL: "" +# GIT_AUTHOR_NAME: "NL Design System" +# GIT_COMMITTER_EMAIL: "" +# GIT_COMMITTER_NAME: "NL Design System" +# run: | +# git push --set-upstream origin HEAD +# pnpm run release + +# - name: "Continuous Deployment: publish to npm" +# env: +# NPM_TOKEN: ${{ secrets.NPM_TOKEN }} +# run: | +# pnpm config set "//registry.npmjs.org/:_authToken" "${NPM_TOKEN}" +# pnpm run publish +# pnpm config delete "//registry.npmjs.org/:_authToken" diff --git a/proprietary/design-tokens/package.json b/proprietary/design-tokens/package.json index 8a638a2..857a020 100644 --- a/proprietary/design-tokens/package.json +++ b/proprietary/design-tokens/package.json @@ -18,8 +18,6 @@ }, "scripts": { "clean": "rimraf dist/", - "build": "npm-run-all clean build:**", - "build:style-dictionary": "style-dictionary build --config ./style-dictionary.config.json", "watch": "npm-run-all watch:**", "watch:style-dictionary": "chokidar --follow-symlinks --initial --command 'pnpm run build' 'src/**/*.tokens.json'" },