diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b7a1ebc..6275247 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,19 +1,18 @@ name: Release -on: - push: - branches: - - master +#on: +# push: +# branches: +# - master +on: [pull_request] + jobs: release: - runs-on: ubuntu-18.04 + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 - with: - node-version: 12 + - uses: actions/checkout@v2 - name: Install dependencies - run: yarn install --frozen-lockfile + uses: bahmutov/npm-install@v1 - name: Test with Coverage run: yarn test @@ -21,8 +20,8 @@ jobs: - name: Build run: yarn build - - name: Release - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - run: npx semantic-release +# - name: Release +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# NPM_TOKEN: ${{ secrets.NPM_TOKEN }} +# run: npx semantic-release diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0c94b2c..1b231c0 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -4,13 +4,9 @@ jobs: test: runs-on: ubuntu-18.04 steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 - with: - node-version: 12 - + - uses: actions/checkout@v2 - name: Install dependencies - run: yarn install --frozen-lockfile + uses: bahmutov/npm-install@v1 - name: Test with Coverage run: yarn test --coverage --coverageReporters=lcov @@ -24,18 +20,15 @@ jobs: github-token: ${{ secrets.GITHUB_TOKEN }} build: - runs-on: ubuntu-18.04 + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 - with: - node-version: 12 - + - uses: actions/checkout@v2 - name: Install dependencies - run: | - yarn install --frozen-lockfile - cd docs - yarn install --frozen-lockfile + uses: bahmutov/npm-install@v1 + with: + working-directory: | + . + docs - name: Build Dist run: yarn build