Skip to content

Commit

Permalink
0.0.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Bowen7 committed Apr 7, 2023
1 parent 4294988 commit bf077b3
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 28 deletions.
20 changes: 7 additions & 13 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,8 @@
name: Node.js Package

on:
push:
branches:
- main
tags-ignore:
- '**'
paths-ignore:
- '**/*.md'
- LICENSE
- '**/*.gitignore'
- .editorconfig
- apps/**
release:
types: [published]

jobs:
publish-npm:
Expand All @@ -29,8 +20,11 @@ jobs:
with:
version: 7.29.1
run_install: true
- run: cd packages/react-rough-fiber && pnpm release
- name: Test
run: pnpm test
- name: Build
run: cd packages/react-rough-fiber && node scripts/npm.js && pnpm build
- name: Publish
run: cd packages/react-rough-fiber && ls
run: cd packages/react-rough-fiber && npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
16 changes: 4 additions & 12 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,11 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: setup node
uses: actions/setup-node@v3
- uses: actions/setup-node@v3
with:
node-version: "14"

- name: Cache pnpm modules
uses: actions/cache@v2
with:
path: ~/.pnpm-store
key: ${{ runner.os }}-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-
- uses: pnpm/[email protected]
node-version: 16
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v2
with:
version: 7.29.1
run_install: true
Expand Down
Empty file added .npmignore
Empty file.
5 changes: 2 additions & 3 deletions packages/react-rough-fiber/package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"name": "react-rough-fiber",
"version": "0.0.1-alpha1",
"version": "0.0.2",
"main": "./src/index.tsx",
"license": "MIT",
"scripts": {
"lint": "eslint *.ts*",
"test": "jest --config jest.config.js --no-cache",
"build": "rm -rf dist && tsup",
"release": "node scripts/npm.js && npm run build"
"build": "rm -rf dist && tsup"
},
"devDependencies": {
"@babel/core": "^7.0.0",
Expand Down

1 comment on commit bf077b3

@vercel
Copy link

@vercel vercel bot commented on bf077b3 Apr 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.