-
Notifications
You must be signed in to change notification settings - Fork 12
35 lines (32 loc) · 1.08 KB
/
publish.yml
File metadata and controls
35 lines (32 loc) · 1.08 KB
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
name: build and publish
# This action will trigger on every published release
on:
release:
types:
- published
permissions:
id-token: write # Required for OIDC trusted publishing
contents: read
# Job will run on a ubuntu instance
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: checkout package repo
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- name: setup node
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
with:
node-version: '16'
check-latest: true
registry-url: 'https://registry.npmjs.org'
scope: '@mattermost'
- name: install dependencies
run: npm install
- name: build component library
run: npm run build
- name: publish to npm
working-directory: ./build
run: npm publish --access public