Skip to content

Commit dcfc6eb

Browse files
committed
fix: fix pack error
1 parent 0b806ac commit dcfc6eb

File tree

3 files changed

+27
-21
lines changed

3 files changed

+27
-21
lines changed
Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,9 @@
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://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3-
41
name: release-templates
52

63
on:
74
push:
85
tags:
9-
- 'v*.*.*'
6+
- "v*.*.*"
107
jobs:
118
build:
129
runs-on: ubuntu-latest
@@ -17,8 +14,8 @@ jobs:
1714
run: echo ${{ github.sha }} > Release.txt
1815
- name: Pack templates
1916
run: |
20-
for f in $(find "." -mindepth 1 -maxdepth 1 -type d ); do
21-
zip -r "$f" "$f"
17+
for f in $(find "." -mindepth 1 -maxdepth 1 -type d); do
18+
zip -r "$f".zip "$f"
2219
done
2320
- name: Release
2421
uses: softprops/action-gh-release@v1
@@ -29,17 +26,3 @@ jobs:
2926
Release.txt
3027
env:
3128
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32-
33-
publish-gpr:
34-
needs: build
35-
runs-on: ubuntu-latest
36-
steps:
37-
- uses: actions/checkout@v2
38-
- uses: actions/setup-node@v1
39-
with:
40-
node-version: 12
41-
registry-url: https://npm.pkg.github.com/
42-
- run: npm ci
43-
- run: npm publish
44-
env:
45-
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
.DS_Store
2-
test/
2+
test/

express/.gitignore

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
/.pnp
6+
.pnp.js
7+
8+
# testing
9+
/coverage
10+
11+
# production
12+
/build
13+
14+
# misc
15+
.DS_Store
16+
.env.local
17+
.env.development.local
18+
.env.test.local
19+
.env.production.local
20+
21+
npm-debug.log*
22+
yarn-debug.log*
23+
yarn-error.log*

0 commit comments

Comments
 (0)