diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index ca11b92..8e8e8e2 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -1,17 +1,21 @@ name: publish on: - release: - types: [created] + push: + branches: jobs: build: runs-on: ubuntu-latest + permissions: + contents: read + packages: write steps: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: node-version: 18 + registry-url: 'https://npm.pkg.github.com' - run: npm ci - run: npm run build - run: npm run test diff --git a/.npmrc b/.npmrc index 3f59071..136ba4b 100644 --- a/.npmrc +++ b/.npmrc @@ -1,2 +1,3 @@ @clusterlean:registry=https://npm.pkg.github.com package-lock=false +always-auth=true