-
Notifications
You must be signed in to change notification settings - Fork 38
34 lines (31 loc) · 1.68 KB
/
Copy pathtag-beta.yml
File metadata and controls
34 lines (31 loc) · 1.68 KB
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
# This is a basic workflow that is manually triggered
name: npm-publish
# Controls when the action will run. Workflow runs when manually triggered using the UI
# or API.
on:
workflow_dispatch:
jobs:
npm-tag-beta:
name: npm-tag
runs-on: ubuntu-latest
steps:
- name: Authenticate with Registry
run: |
echo "@adobe:registry=https://registry.npmjs.org/" > .npmrc
echo "registry=https://registry.npmjs.org/" >> .npmrc
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
npm whoami
env: # More info about the environment variables in the README
NPM_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }} # This will be shared with your repo as an org secret
- name: tag messaging
run: npm dist-tag add @adobe/react-native-aepmessaging@5.1.0-beta.1 beta
env: # More info about the environment variables in the README
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this as is, it's automatically generated
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this as is, it's automatically generated
NPM_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }} # This will be shared with your repo as an org secret
- name: tag messaging latest
run: npm dist-tag add @adobe/react-native-aepmessaging@5.0.0 latest
env: # More info about the environment variables in the README
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this as is, it's automatically generated
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Leave this as is, it's automatically generated
NPM_TOKEN: ${{ secrets.ADOBE_BOT_NPM_TOKEN }} # This will be shared with your repo as an org secret