generated from idea2app/REST-Node-ts
-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (33 loc) · 959 Bytes
/
publish-type.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: publish Type Package
on:
push:
tags:
- type-v*
jobs:
Build-and-Publish:
runs-on: ubuntu-latest
permissions:
contents: write
packages: write
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://npm.pkg.github.com
cache: pnpm
- name: Inject Environment variables
run: |
cat > .env <<EOF
${{ secrets.ENV_FILE }}
EOF
- name: Install, Build & Publish
run: |
pnpm i && npm test
cd type/
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}