diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 03112f5..e56eb8e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,16 +1,10 @@ name: Release -on: - push: - tags: - - 'v[0-9]+.*' +on: [push] jobs: - create_release: - name: Create Release + release: runs-on: ubuntu-latest - outputs: - version: ${{ steps.get_version.outputs.version }} steps: - name: Checkout Sources uses: actions/checkout@v2 @@ -31,6 +25,6 @@ jobs: run: npm run coverage - name: Publish env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} 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 deleted file mode 100644 index ac70ba0..0000000 --- a/.github/workflows/test.yml +++ /dev/null @@ -1,26 +0,0 @@ -name: Test - -on: - push: - branches: - - master - pull_request: - types: - - opened - - reopened - - synchronize - -jobs: - test: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v2 - with: - node-version: "lts/*" - - uses: pnpm/action-setup@v2 - with: - version: '>=6' - run_install: | - - args: [--frozen-lockfile, --no-verify-store-integrity] - - run: npm test diff --git a/package.json b/package.json index 3c91ed3..88c7d0b 100644 --- a/package.json +++ b/package.json @@ -38,7 +38,7 @@ "lint:fix": "standard --fix --verbose bin/nettime lib/*.js tests/*.js", "check": "tap tests/*.js", "test": "npm run lint && npm run check", - "coverage": "tap --coverage-report=text-lcov | npx coverage" + "coverage": "tap --coverage-report=text-lcov | npx codecov" }, "tap": { "check-coverage": false