8000 Merge branch 'master' of https://github.com/sauravhathi/github-folder… · sauravhathi/github-folder-tree@1a4a966 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1a4a966

Browse files
committed
2 parents 9701303 + 302cbfd commit 1a4a966

File tree

1 file changed

+11
-21
lines changed

1 file changed

+11
-21
lines changed

.github/workflows/publish.yml

Lines changed: 11 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,23 @@
1-
# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
2-
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
3-
4-
name: 🚀 Publish
1+
name: "🚀 Publish"
52

63
on:
74
release:
85
types: [created]
96

107
jobs:
11-
build:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v3
15-
- uses: actions/setup-node@v3
16-
with:
17-
node-version: 16
18-
- run: npm ci
19-
20-
publish-npm:
21-
nee 8000 ds: build
8+
publish:
229
runs-on: ubuntu-latest
2310
steps:
24-
- uses: actions/checkout@v3
25-
- uses: actions/setup-node@v3
11+
- name: checkout
12+
uses: actions/checkout@v3
13+
- name: node
14+
uses: actions/setup-node@v3
2615
with:
2716
node-version: 16
28-
registry-url: https://registry.npmjs.org/
29-
- run: npm ci
30-
- run: npm run build
31-
- run: npm publish
17+
registry-url: https://registry.npmjs.org
18+
- name: 🚀 Publish
19+
run: |
20+
npm install --package-lock-only &&
21+
npm publish --access public
3222
env:
3323
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)
0