-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (38 loc) · 1.58 KB
/
release.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
name: Release
on:
push:
branches:
- master # adjust this to your main development branch if it's not "main"
workflow_dispatch: # this allows for manual triggering
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
submodules: 'recursive'
token: ${{ secrets.PLUTO_GITHUB }}
fetch-depth: 0
ref: ${{ github.event.pull_request.base.ref }}
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '18' # adjust this to your project's Node.js version
- name: Install Dependencies
env:
GH_TOKEN: ${{ secrets.PLUTO_GITHUB }}
GITHUB_TOKEN: ${{ secrets.PLUTO_GITHUB }}
NPM_TOKEN: ${{ secrets.PLUTO_GITHUB }}
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.PLUTO_GITHUB }}\n@input-output-hk:registry=https://npm.pkg.github.com" > .npmrc && npm i
- name: Semantic Release
env:
GH_TOKEN: ${{ secrets.PLUTO_GITHUB }}
GITHUB_TOKEN: ${{ secrets.PLUTO_GITHUB }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm test && npx jest-coverage-badges && npm run docs -- --hideInPageTOC true --hideBreadcrumbs true && cp -r docs/* . && npx semantic-release