diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2c85266..c7d2869 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,9 +2,9 @@ name: CI on: push: - branches: [main] + branches: [master] pull_request: - branches: [main] + branches: [master] jobs: ci: @@ -19,14 +19,8 @@ jobs: - run: npm ci - - name: Type check - run: npm run typecheck - - name: Lint run: npm run lint - - name: Test - run: npm test - - name: Build run: npm run build diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3501e1a..42212b8 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,14 +3,14 @@ name: Publish to npm on: push: tags: - - 'v*' + - "v*" jobs: publish: runs-on: ubuntu-latest permissions: contents: read - id-token: write # для npm provenance + id-token: write steps: - uses: actions/checkout@v4 @@ -22,16 +22,13 @@ jobs: - run: npm ci - - name: Type check - run: npm run typecheck - - - name: Test - run: npm test + - name: Lint + run: npm run lint - name: Build run: npm run build - name: Publish - run: npm publish --provenance --access public + run: npm publish --provenance env: NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}