Skip to content

Commit bf077b3

Browse files
committed
0.0.2
1 parent 4294988 commit bf077b3

File tree

4 files changed

+13
-28
lines changed

4 files changed

+13
-28
lines changed

.github/workflows/npm-publish.yml

Lines changed: 7 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,8 @@
44
name: Node.js Package
55

66
on:
7-
push:
8-
branches:
9-
- main
10-
tags-ignore:
11-
- '**'
12-
paths-ignore:
13-
- '**/*.md'
14-
- LICENSE
15-
- '**/*.gitignore'
16-
- .editorconfig
17-
- apps/**
7+
release:
8+
types: [published]
189

1910
jobs:
2011
publish-npm:
@@ -29,8 +20,11 @@ jobs:
2920
with:
3021
version: 7.29.1
3122
run_install: true
32-
- run: cd packages/react-rough-fiber && pnpm release
23+
- name: Test
24+
run: pnpm test
25+
- name: Build
26+
run: cd packages/react-rough-fiber && node scripts/npm.js && pnpm build
3327
- name: Publish
34-
run: cd packages/react-rough-fiber && ls
28+
run: cd packages/react-rough-fiber && npm publish --access public
3529
env:
3630
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.github/workflows/pr.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,11 @@ jobs:
1010
steps:
1111
- uses: actions/checkout@v3
1212

13-
- name: setup node
14-
uses: actions/setup-node@v3
13+
- uses: actions/setup-node@v3
1514
with:
16-
node-version: "14"
17-
18-
- name: Cache pnpm modules
19-
uses: actions/cache@v2
20-
with:
21-
path: ~/.pnpm-store
22-
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
23-
restore-keys: |
24-
${{ runner.os }}-
25-
- uses: pnpm/action-setup@v2.1.0
15+
node-version: 16
16+
registry-url: https://registry.npmjs.org/
17+
- uses: pnpm/action-setup@v2
2618
with:
2719
version: 7.29.1
2820
run_install: true

.npmignore

Whitespace-only changes.

packages/react-rough-fiber/package.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
{
22
"name": "react-rough-fiber",
3-
"version": "0.0.1-alpha1",
3+
"version": "0.0.2",
44
"main": "./src/index.tsx",
55
"license": "MIT",
66
"scripts": {
77
"lint": "eslint *.ts*",
88
"test": "jest --config jest.config.js --no-cache",
9-
"build": "rm -rf dist && tsup",
10-
"release": "node scripts/npm.js && npm run build"
9+
"build": "rm -rf dist && tsup"
1110
},
1211
"devDependencies": {
1312
"@babel/core": "^7.0.0",

0 commit comments

Comments
 (0)