-
Notifications
You must be signed in to change notification settings - Fork 33
58 lines (58 loc) · 2.32 KB
/
prerelease.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: publish-prerelease (next versions of dependencies)
on:
workflow_dispatch:
inputs:
pre-release-tag:
description: 'The pre-release tag use in the version'
required: false
default: 'pre'
dist-tag:
description: 'The dist-tag use'
required: false
default: 'latest'
dependencies-dist-tag:
description: 'The dist-tag use for dependencies'
required: false
default: 'next'
dependencies-to-update:
description: 'csv of dependencies to update with the dist-tag'
required: false
default: '@adobe/aio-cli-plugin-app,@adobe/aio-cli-plugin-auth,@adobe/aio-cli-plugin-certificate,@adobe/aio-cli-plugin-config,@adobe/aio-cli-plugin-console,@adobe/aio-cli-plugin-events,@adobe/aio-cli-plugin-info,@adobe/aio-cli-plugin-runtime,@adobe/aio-cli-plugin-telemetry,@adobe/aio-cli-plugin-app-templates'
package-name:
description: 'npm package name that pre-release testers will `npm install`'
required: false
default: '@adobe/aio-cli-next'
jobs:
checkout:
name: checkout
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: |
git config user.name github-actions
git config user.email [email protected]
git branch
- uses: actions/setup-node@v1
with:
node-version: 18
- run: |
npm pkg set name=${{ github.event.inputs.package-name }}
npm pkg set bin.aio-next="./bin/run"
npm pkg delete bin.aio
npm pkg set oclif.bin="aio-next"
- name: Update your package.json with an npm pre-release version
id: pre-release-version
uses: adobe/[email protected]
with:
pre-release-tag: ${{ github.event.inputs.pre-release-tag }}
dependencies-to-update: ${{ github.event.inputs.dependencies-to-update }}
dependencies-to-update-version-tag: ${{ github.event.inputs.dependencies-dist-tag }}
- run: echo pre-release-version - ${{ steps.pre-release-version.outputs.pre-release-version }}
- run: |
npm install
npm test
- uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.ADOBE_BOT_NPM_TOKEN }}
tag: ${{ github.event.inputs.dist-tag }}
access: 'public'