Skip to content

Commit 9bff12e

Browse files
Feat/githubactions (#15)
* chore: enable publish step
1 parent fd2e1b2 commit 9bff12e

1 file changed

Lines changed: 7 additions & 14 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Publish Package
22

33
on:
44
release:
5-
types: [released]
5+
types: [published]
66

77
jobs:
88
deploy:
@@ -14,23 +14,16 @@ jobs:
1414
- name: Use Node.js
1515
uses: actions/setup-node@v3
1616
with:
17-
node-version: 'lts/gallium'
18-
19-
- name: Get project Version
20-
id: package-version
21-
uses: martinbeentjes/npm-get-version-action@v1.3.1
22-
23-
- name: Show project version
24-
run: |
25-
echo "Publish version => ${{ steps.package-version.outputs.current-version }}"
17+
node-version: 'lts/gallium'
18+
registry-url: 'https://registry.npmjs.org'
2619

2720
- name: Install dependencies
2821
run: npm install
2922

3023
- name: Run Tests
3124
run: npm run test
3225

33-
#- name: Publish Package to npmjs
34-
#- run: npm publish
35-
# env:
36-
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
26+
- name: Publish Package to npmjs
27+
run: npm publish --access public
28+
env:
29+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)