Skip to content

Commit 2915792

Browse files
committed
chore: npm release
1 parent 07036e7 commit 2915792

3 files changed

Lines changed: 15 additions & 6 deletions

File tree

.github/workflows/release.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,15 @@ name: Release
22
on:
33
workflow_dispatch:
44
inputs:
5-
releaseitParams:
6-
description: 'Release params'
7-
required: false
8-
default: ''
9-
type: string
5+
versionTag:
6+
description: 'Version tag'
7+
required: true
8+
default: 'patch'
9+
type: choice
10+
options:
11+
- patch
12+
- minor
13+
- major
1014
jobs:
1115
release:
1216
runs-on: ubuntu-latest
@@ -23,10 +27,11 @@ jobs:
2327
run: |
2428
npm config set location project
2529
npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
30+
yarn config set registry https://registry.npmjs.org
2631
env:
2732
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
2833
- name: Run release
29-
run: yarn run release --ci
34+
run: yarn run release --ci -i=${{inputs.versionTag}}
3035
env:
3136
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
3237
NPM_TOKEN: ${{secrets.NPM_TOKEN}}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,4 @@ node_modules/
4646

4747
# release
4848
.npmrc
49+
bin

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@
66
"module": "./dist/index.mjs",
77
"types": "./dist/index.d.ts",
88
"license": "MIT",
9+
"files": [
10+
"/dist"
11+
],
912
"repository": {
1013
"type": "git",
1114
"url": "https://github.com/izziaraffaele/react-eas.git"

0 commit comments

Comments
 (0)