-
Notifications
You must be signed in to change notification settings - Fork 6
33 lines (32 loc) · 880 Bytes
/
publish.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
name: NPM publish
on: workflow_dispatch
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Use Node.js 16
uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm ci
- name: Create .env file
run: |
touch .env
echo TRELLO_API_KEY=${{ secrets.TRELLO_API_KEY }} >> .env
echo TRELLO_API_TOKEN=${{ secrets.TRELLO_API_TOKEN }} >> .env
- name: Building sources
run: npm run build
- name: Tests
run: npm run test
- name: Linting
run: npm run lint
env:
CI: true
- name: Publishing
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}