Skip to content

Commit 1757fd6

Browse files
committed
🤖 add initial ci to publish package
1 parent ea23474 commit 1757fd6

File tree

1 file changed

+16
-12
lines changed

1 file changed

+16
-12
lines changed

.github/workflows/build.yaml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,23 @@
1-
name: build and test
1+
name: build and deploy
22

33
on: [push]
44

55
jobs:
6-
compliance:
6+
build:
77
runs-on: ubuntu-latest
8-
8+
permissions:
9+
contents: read
10+
id-token: write
911
steps:
10-
- name: Checkout code
11-
uses: actions/checkout@v4
12-
13-
- name: Advance Security Policy as Code
14-
uses: advanced-security/policy-as-code@v2.7.2
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
1514
with:
16-
policy: it-at-m/policy-as-code
17-
policy-path: default.yaml
18-
token: ${{ secrets.GITHUB_TOKEN }}
19-
argvs: "--disable-dependabot --disable-secret-scanning --disable-code-scanning --display"
15+
node-version: "20"
16+
cache: "npm"
17+
registry-url: "https://registry.npmjs.org"
18+
- run: npm ci # install dependencies
19+
- run: npm run build # or any other step to build your package
20+
- run: npm publish # publish
21+
env:
22+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # in der GitHub it-at-m Orga zentral hinterlegter Token
23+

0 commit comments

Comments
 (0)