-
Notifications
You must be signed in to change notification settings - Fork 5
49 lines (41 loc) · 1.02 KB
/
continuous-deployment.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Continuous Deployment
on:
workflow_run:
workflows: ["Continuous Integration"]
branches: [main, beta]
types:
- completed
concurrency:
group: npm
permissions:
contents: write
deployments: read
issues: write
pull-requests: write
env:
HUSKY: 0
jobs:
release:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' }}
environment:
name: npm
url: https://www.npmjs.com/package/postdfm
steps:
- uses: actions/checkout@v4
# unlike with ci, we only want the latest version to deploy with
- name: setup node.js
uses: actions/[email protected]
with:
node-version: latest
cache: yarn
- run: yarn install --immutable
- run: yarn generate
- run: yarn compile
- run: yarn release
continue-on-error: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- run: npm config list
- run: yarn config