diff --git a/.github/workflows/semantic-release.yml b/.github/workflows/semantic-release.yml index 479467a..6f9333b 100644 --- a/.github/workflows/semantic-release.yml +++ b/.github/workflows/semantic-release.yml @@ -9,41 +9,27 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: 12 + node-version: '12' + registry-url: 'https://registry.npmjs.org' - run: yarn install --frozen-lockfile - run: yarn test - run: yarn lint - run: yarn type-check - run: yarn build - publish-npm: + publish: needs: test runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v1 with: - node-version: 12 - registry-url: https://registry.npmjs.org/ + node-version: '12' + registry-url: 'https://registry.npmjs.org' - run: yarn install --frozen-lockfile - run: yarn build - run: yarn semantic-release env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - - # publish-gpr: - # needs: test - # runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@v2 - # - uses: actions/setup-node@v1 - # with: - # node-version: 12 - # registry-url: https://npm.pkg.github.com/ - # - run: yarn install --frozen-lockfile - # - run: yarn build - # - run: yarn semantic-release - # env: - # GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index 3eb5030..7e5f7ff 100644 --- a/package.json +++ b/package.json @@ -55,8 +55,5 @@ "repository": { "type": "git", "url": "https://github.com/mattlubner/qr-decode-encode.git" - }, - "publishConfig": { - "access": "public" } }