Skip to content

Commit d00d5b9

Browse files
committed
updated release.yml
1 parent dfb3888 commit d00d5b9

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

.github/workflows/release.yml

+12-6
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,18 @@ jobs:
1616
uses: actions/setup-node@v3
1717
with:
1818
node-version: '20.x'
19-
- run: npm install
20-
- run: npm install -g rollup
21-
- run: npm install -g terser
22-
- run: npm run build
23-
- run: zip -r bottlecap.zip dist/*
24-
- name: Create release
19+
registry-url: 'https://registry.npmjs.org'
20+
- name: Install dependencies and build
21+
run: |
22+
npm install
23+
npm install -g rollup
24+
npm install -g terser
25+
npm run build
26+
- name: Publish package on NPM 📦
27+
run: npm publish
28+
env:
29+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
30+
- name: Create Github release
2531
id: release
2632
uses: softprops/action-gh-release@v1
2733
with:

0 commit comments

Comments
 (0)