From ec5ade69746f19a497d1544c142a84ec4330703b Mon Sep 17 00:00:00 2001 From: Ronny Roeller Date: Tue, 20 Aug 2024 17:36:39 +0200 Subject: [PATCH] Simplify workflow definition --- .github/workflows/ci.yml | 4 +--- .github/workflows/deploy-storybook.yml | 17 +++++------------ .github/workflows/npm-publish.yml | 5 +---- 3 files changed, 7 insertions(+), 19 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5eda697..ee45a66 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,8 +8,6 @@ jobs: steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 - with: - node-version: 18 - run: npm ci --unsafe-perm - run: npm run build - - run: npm test \ No newline at end of file + - run: npm test diff --git a/.github/workflows/deploy-storybook.yml b/.github/workflows/deploy-storybook.yml index 2a84ee5..e1f2f42 100644 --- a/.github/workflows/deploy-storybook.yml +++ b/.github/workflows/deploy-storybook.yml @@ -9,18 +9,11 @@ jobs: build-and-deploy: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v3 - - name: Setup Node.js - uses: actions/setup-node@v3 - with: - node-version: 18 - - name: Install dependencies - run: npm ci --unsafe-perm - - name: Build Storybook - run: npm run storybook:build - - name: Deploy to GitHub Pages - uses: peaceiris/actions-gh-pages@v3 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + - run: npm ci --unsafe-perm + - run: npm run storybook:build + - uses: peaceiris/actions-gh-pages@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} publish_dir: ./storybook-static diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index debf3ba..8616fe1 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -11,13 +11,10 @@ jobs: steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 - with: - node-version: 18 - registry-url: https://registry.npmjs.org/ - run: npm ci --unsafe-perm - run: npm run build - run: npm test - name: Publish to NPM run: npm publish env: - NODE_AUTH_TOKEN: ${{secrets.npm_token}} \ No newline at end of file + NODE_AUTH_TOKEN: ${{secrets.npm_token}}