diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 348cc6e5..1c76d436 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,17 +3,17 @@ name: node_js CI on: push: branches: - - master + - master pull_request: branches: - - "**" + - '**' jobs: tests: runs-on: ubuntu-20.04 strategy: matrix: - node: [ 12, 14, 16 ] + node: [16] steps: - name: Checkout diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index da3e33b1..22464a5b 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -2,7 +2,7 @@ name: Release CI on: push: branches: - - 'master' + - master jobs: release: @@ -10,30 +10,30 @@ jobs: runs-on: ubuntu-20.04 steps: - - name: Checkout - uses: actions/checkout@v2 - with: - fetch-depth: 0 + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 - - name: Setup Node.js - uses: actions/setup-node@v1 - with: - node-version: 12 + - name: Setup Node.js + uses: actions/setup-node@v1 + with: + node-version: 16 - - name: Install dependencies - run: npm ci + - name: Install dependencies + run: npm ci - - name: Create Build - run: npm run build + - name: Create Build + run: npm run build - - name: Release Package - env: - GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} - run: npx semantic-release + - name: Release Package + env: + GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} + run: npx semantic-release - - name: Deploy to GH pages - env: - GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} - run: npx deploy-storybook-ci + - name: Deploy to GH pages + env: + GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.SEMANTIC_RELEASE_NPM_TOKEN }} + run: npx deploy-storybook-ci