Skip to content
This repository was archived by the owner on Jul 29, 2022. It is now read-only.

Commit 11cd088

Browse files
authored
Updates vulnerable package (#9)
* updates `acorn` from `7.1.0` to `7.1.1` * adds GitHub Action for Deployments
1 parent 10f2a2d commit 11cd088

File tree

3 files changed

+35
-4
lines changed

3 files changed

+35
-4
lines changed

.github/workflows/deployment.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
3+
name: Deployment
4+
5+
on:
6+
release:
7+
types: [published]
8+
9+
env:
10+
NODE_VERSION: 12
11+
12+
jobs:
13+
publish-to-gpr:
14+
runs-on: ubuntu-latest
15+
name: publish-to-gpr
16+
17+
steps:
18+
- name: Checkout Repository
19+
uses: actions/checkout@v2
20+
with:
21+
fetch-depth: 1
22+
23+
- name: Setup Node
24+
uses: actions/setup-node@v1
25+
with:
26+
node-version: ${{ env.NODE_VERSION }}
27+
registry-url: 'https://npm.pkg.github.com'
28+
29+
- name: Publish to GitHub Package Registry
30+
run: npm publish
31+
env:
32+
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

package-lock.json

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
},
99
"scripts": {
1010
"test": "script/test",
11-
"postinstall": "script/setup",
1211
"start": "node index.js"
1312
},
1413
"repository": {

0 commit comments

Comments
 (0)