-
Notifications
You must be signed in to change notification settings - Fork 1
29 lines (27 loc) · 885 Bytes
/
npm-publish.yml
File metadata and controls
29 lines (27 loc) · 885 Bytes
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
# When anyone pushes to npm branch in this repo, the package will be published to npm. This action requires
# access to NPM_TOKEN secret. Contact core.ai admins to get access to core.ais org tokens.
# To publish to your own npm account, follow this https://docs.npmjs.com/creating-and-viewing-access-tokens
name: Publish package to npm
on:
push:
branches: [ npm ]
jobs:
build-tasks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Npm Install
run: |
npm ci
- name: building package
run: |
npm run build
- name: Tests with coverage
run: |
npm run cover
- name: Publishing package to npm repository
run: |
node .github/workflows/js/validatePackage.cjs
npm publish --access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}