diff --git a/.github/workflows/continuous-deployment-workflow.yml b/.github/workflows/continuous-deployment-workflow.yml index 31c97cad..7882b2c7 100644 --- a/.github/workflows/continuous-deployment-workflow.yml +++ b/.github/workflows/continuous-deployment-workflow.yml @@ -7,9 +7,10 @@ jobs: name: Publish to NPM runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 with: + node-version: 'lts/*' registry-url: https://registry.npmjs.org - run: npm ci --ignore-scripts - run: npm run prettier:check @@ -23,4 +24,4 @@ jobs: - run: jq 'del(.devDependencies) | del(.scripts)' package.json > build/package.json - run: npm publish ./build env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }} \ No newline at end of file diff --git a/.github/workflows/continuous-integration-workflow.yml b/.github/workflows/continuous-integration-workflow.yml index 1d1bebc2..ccfa4cc0 100644 --- a/.github/workflows/continuous-integration-workflow.yml +++ b/.github/workflows/continuous-integration-workflow.yml @@ -5,8 +5,10 @@ jobs: name: Linters runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 'lts/*' - run: npm ci --ignore-scripts - run: npm run prettier:check - run: npm run lint:check @@ -15,27 +17,29 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - node-version: ['10.x', '12.x', '14.x'] + node-version: ['lts/*', 'current'] fail-fast: false steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v3 - name: Setting up Node.js (v${{ matrix.node-version }}.x) - uses: actions/setup-node@v1 + uses: actions/setup-node@v3 with: node-version: ${{ matrix.node-version }} - run: npm ci --ignore-scripts - run: npm run test:ci - run: npm install codecov -g - if: ${{ matrix.node-version == '14.x' }} + if: ${{ matrix.node-version == 'current' }} - run: codecov -f ./coverage/clover.xml -t ${{ secrets.CODECOV_TOKEN }} --commit=$GITHUB_SHA --branch=${GITHUB_REF##*/} - if: ${{ matrix.node-version == '14.x' }} + if: ${{ matrix.node-version == 'current' }} build: name: Build runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v3 + - uses: actions/setup-node@v3 + with: + node-version: 'lts/*' - run: npm ci --ignore-scripts - run: npm run build:es2015 - run: npm run build:cjs - - run: npm run build:types + - run: npm run build:types \ No newline at end of file