forked from azuqua/react-dnd-scrollzone
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (37 loc) · 1.19 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
44
name: Create release and publish to NPM
on:
workflow_dispatch:
push:
branches:
- main
jobs:
release:
name: Build and deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Enable Corepack
run: corepack enable
- name: Setup Node.js
uses: actions/setup-node@v4.0.1
with:
node-version: 20.14.0
- name: Install Dependencies
run: pnpm install
- name: Lint
run: pnpm lint
- name: Build
run: pnpm build
- name: Configure NPM
env:
ARTIFACTORY_USERNAME: ${{ secrets.DEVEX_ARTIFACTORY_WRITER_USERNAME }}
ARTIFACTORY_PASSWORD: ${{ secrets.DEVEX_ARTIFACTORY_WRITER_TOKEN_BASE64_ENC }}
run: |
pnpm config set "@loomhq:registry" "https://packages.atlassian.com/api/npm/atlassian-npm/"
pnpm config set "//packages.atlassian.com/api/npm/atlassian-npm/:username" "${ARTIFACTORY_USERNAME}"
pnpm config set "//packages.atlassian.com/api/npm/atlassian-npm/:_password" "${ARTIFACTORY_PASSWORD}"
- name: Publish (dry-run)
run: pnpm publish --dry-run