Skip to content

Commit 476838d

Browse files
committed
build(release): update release event
1 parent 20b0d98 commit 476838d

File tree

1 file changed

+25
-10
lines changed

1 file changed

+25
-10
lines changed

.github/workflows/release.yml

Lines changed: 25 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,28 @@ jobs:
1313
node-version: [10.x]
1414

1515
steps:
16-
- uses: actions/checkout@v1
17-
- name: Use Node.js ${{ matrix.node-version }}
18-
uses: actions/setup-node@v1
19-
with:
20-
node-version: ${{ matrix.node-version }}
21-
- name: lets publish
22-
run: |
23-
echo ${GITHUB_REF##*/}
24-
env:
25-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
16+
- uses: actions/checkout@v1
17+
- name: Use Node.js ${{ matrix.node-version }}
18+
uses: actions/setup-node@v1
19+
with:
20+
node-version: ${{ matrix.node-version }}
21+
registry-url: https://registry.npmjs.org/
22+
- name: commit configuration
23+
run: |
24+
git config --global user.name 'typescripttdd'
25+
git config --global user.email '[email protected]'
26+
- name: npm install and version
27+
run: |
28+
npm install
29+
npm version ${GITHUB_REF##*/}
30+
- name: Push changes
31+
uses: ad-m/github-push-action@master
32+
with:
33+
github_token: ${{ secrets.GITHUB_TOKEN_TYPESCRIPTTDD }}
34+
- name: Publish
35+
run: |
36+
npm run preparePublish
37+
cd dist
38+
npm publish --access public
39+
env:
40+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)