Skip to content

Commit

Permalink
fix publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
leobastiani committed Apr 21, 2023
1 parent 31af5a2 commit e04de22
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}
registry=https://registry.npmjs.org/
always-auth=true
5 changes: 2 additions & 3 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@ jobs:
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
ref: main

- name: Setup pnpm
uses: pnpm/action-setup@v2
Expand All @@ -26,11 +24,12 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'

- name: Install dependencies
run: pnpm install

- name: Publish
run: npm publish
run: pnpm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "react-with-hoc",
"description": "React HOCs made easy and great",
"version": "0.0.5",
"version": "0.0.6-wip01",
"main": "dist/index.cjs.js",
"module": "dist/index.esm.mjs",
"umd:main": "dist/index.umd.js",
Expand Down

0 comments on commit e04de22

Please sign in to comment.