-
Notifications
You must be signed in to change notification settings - Fork 21
42 lines (39 loc) · 1.27 KB
/
npm-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
34
35
36
37
38
39
40
41
42
name: npm-publish
on:
workflow_dispatch:
inputs:
semverBump:
description: "Bump which semver version number? (major, minor, patch)"
required: true
default: "patch"
jobs:
npm-publish:
name: npm-publish
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@master
with:
fetch-depth: 0
token: ${{ secrets.ADOBE_BOT_GITHUB_TOKEN }}
- name: Configure git user for release commits
run: |
git config user.email "[email protected]"
git config user.name "Adobe Release Bot"
- name: Set up Node.js
uses: actions/setup-node@master
with:
node-version: 14
registry-url: "https://registry.npmjs.org"
- name: Publish to registry.npmjs.org
run: |
npm ci
npm run publish ${{ github.event.inputs.semverBump }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.ADOBE_BOT_GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
NPM_AUTH_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
NPM_AUTH: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
NPM_REGISTRY: registry.npmjs.org
CI: true