-
Notifications
You must be signed in to change notification settings - Fork 22
38 lines (38 loc) · 1.17 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
name: Release
on:
push:
branches:
- main
- '[0-9]+.x'
- '[0-9]+.[0-9]+.x'
jobs:
release:
if: "!contains(github.event.head_commit.message, 'skip ci')"
name: Release
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- uses: Brightspace/third-party-actions@actions/checkout
with:
persist-credentials: false
- uses: Brightspace/third-party-actions@actions/setup-node
with:
node-version: '14'
cache: 'npm'
- name: Install dependencies
run: |
npm ci
npm install web-component-analyzer --no-save
- name: Build
run: npm run build
- name: Create custom-elements.json
run: npx wca analyze \"{components,templates}/**/*.js\" --format json --outFile custom-elements.json
- name: Prepare Translations for NPM
uses: BrightspaceUI/actions/prepare-translations-for-npm@master
- name: Semantic Release
uses: BrightspaceUI/actions/semantic-release@master
with:
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.D2L_GITHUB_TOKEN }}
NPM: true
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}