Skip to content

Commit af1bc79

Browse files
committed
update workflow 📦
1 parent c1d2a29 commit af1bc79

2 files changed

Lines changed: 17 additions & 6 deletions

File tree

.github/workflows/publish.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,31 @@ name: Publish to npm
22

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

77
jobs:
88
publish:
99
runs-on: ubuntu-latest
10-
permissions:
11-
contents: read
12-
id-token: write
1310
steps:
1411
- uses: actions/checkout@v4
12+
13+
- uses: oven-sh/setup-bun@v2
14+
1515
- uses: actions/setup-node@v4
1616
with:
1717
node-version: 20
1818
registry-url: https://registry.npmjs.org
19-
- run: npm publish --provenance --access public
19+
20+
- name: Install dependencies
21+
run: bun install
22+
23+
- name: Build
24+
run: bun run build
25+
26+
- name: Verify build
27+
run: ls -la dist/
28+
29+
- name: Publish to npm
30+
run: npm publish --access public
2031
env:
2132
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sileo",
3-
"version": "0.0.3",
3+
"version": "0.0.4",
44
"description": "An opinionated, physics based toast notification library for react.",
55
"license": "MIT",
66
"repository": {

0 commit comments

Comments
 (0)