diff --git a/.github/workflows/npmpublish.yml b/.github/workflows/npmpublish.yml index b81d366..1b06881 100644 --- a/.github/workflows/npmpublish.yml +++ b/.github/workflows/npmpublish.yml @@ -30,6 +30,7 @@ jobs: publish-npm: # needs: test env: + NPM_TOKEN: ${{secrets.npm_token}} REF: ${{github.ref}} runs-on: ubuntu-latest steps: @@ -42,6 +43,7 @@ jobs: - run: yarn - run: echo ${REF#refs/tags/} - run: yarn build:package - - run: npm run publish --access public --new-version ${REF#"refs/tags/"} --no-git-tag-version + - run: echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > ~/repo/.npmrc + - run: npm run publish --access public --new-version ${REF#"refs/tags/"} --no-git-tag-version env: - NODE_AUTH_TOKEN: ${{secrets.npm_token}} + NODE_AUTH_TOKEN: ${NPM_TOKEN} diff --git a/package.json b/package.json index 9909098..e9b7a06 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,6 @@ { "name": "@the-simple/web-components", "version": "1.0.1", - "private": false, "license": "MIT", "files": [ "/dist",