forked from patternfly/react-topology
-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (30 loc) · 945 Bytes
/
promote.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
name: promote
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- v5.*
jobs:
build-and-promote:
runs-on: ubuntu-latest
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
steps:
- uses: actions/checkout@v2
- name: Build for promotion
run: yarn install --frozen-lockfile && yarn build
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: GitHub Tag Name example
run: |
echo "Tag name from GITHUB_REF_NAME: $GITHUB_REF_NAME"
echo "Tag name from github.ref_name: ${{ github.ref_name }}"
- name: Manual publish
run: |
cd packages/module
npm version ${{ github.ref_name }} --git-tag-version false
npm publish --tag=latest