Skip to content

Commit 9c5a02a

Browse files
authored
Merge pull request #75 from microcmsio/ci/update
Update release workflow
2 parents a2eaa7b + 4358074 commit 9c5a02a

3 files changed

Lines changed: 16 additions & 26835 deletions

File tree

.github/workflows/release.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@ jobs:
99
build:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
13-
- uses: actions/setup-node@v1
14-
with:
15-
node-version: '12.x'
16-
registry-url: 'https://registry.npmjs.org'
17-
- name: release on npm
18-
run: |
19-
npm ci
20-
npm run build
21-
- run: npm publish
22-
env:
23-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: '18.x'
16+
registry-url: 'https://registry.npmjs.org'
17+
- name: release on npm
18+
run: |
19+
yarn install --frozen-lockfile
20+
yarn build
21+
- run: npm publish
22+
env:
23+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -192,25 +192,25 @@ https://microcmsio.github.io/react-hooks-use-modal/
192192
### Setup
193193
194194
```
195-
$ npm install
195+
$ yarn
196196
```
197197
198198
### Build src
199199
200200
```
201-
$ npm run build
201+
$ yarn build
202202
```
203203
204204
### Watch src
205205
206206
```
207-
$ npm run watch
207+
$ yarn watch
208208
```
209209
210210
### Start demo
211211
212212
```
213-
$ npm run start:demo
213+
$ yarn start:demo
214214
```
215215
216216
Then access it on http://localhost:3001/react-hooks-use-modal

0 commit comments

Comments
 (0)