From dd45a732fb8a8b64a66a765f37486625b54e4ecb Mon Sep 17 00:00:00 2001 From: mm <25961416+mlmoravek@users.noreply.github.com> Date: Tue, 30 Jul 2024 13:59:27 +0200 Subject: [PATCH] build(workflows): update workflows (#111) * build(workflow): update publish.yml * build(workflow): update build.yml --- .github/workflows/build.yml | 2 ++ .github/workflows/publish.yml | 16 ++++++++++------ types/index.d.ts | 1 - 3 files changed, 12 insertions(+), 7 deletions(-) delete mode 100644 types/index.d.ts diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2b94f29..84e6ef2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,10 +4,12 @@ on: branches: - develop - main + - master pull_request: branches: - develop - main + - master jobs: build: runs-on: ubuntu-latest diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3a7952e..e08168d 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -6,13 +6,17 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 + - uses: actions/checkout@v4 + - name: Use Node.js '20.x' + uses: actions/setup-node@v4 with: - node-version: '16.x' + node-version: '20.x' registry-url: 'https://registry.npmjs.org' - - run: npm install - - run: npm run build:lib - - run: npm publish + - name: Install dependencies 📦 + run: npm install + - name: Build lib + run: npm run build:lib + - name: Publish NPM lib + run: npm publish env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/types/index.d.ts b/types/index.d.ts deleted file mode 100644 index 758fb9d..0000000 --- a/types/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -declare module "@oruga-ui/theme-bulma";