Skip to content

Commit

Permalink
Update promote.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolethoen authored Oct 25, 2024
1 parent 2799181 commit 9e1efca
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/promote.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
name: promote
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- v2.*
workflow_dispatch:
inputs:
new_tag_name:
description: Name of tag created to be associated with this promotion.
required: true
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 }}
NEW_TAG_NAME: ${{ github.event.inputs.new_tag_name }}
steps:
- uses: actions/checkout@v4
- name: Build for promotion
Expand All @@ -26,5 +28,5 @@ jobs:
- name: Manual publish
run: |
cd packages/module
npm version ${{ github.ref_name }} --git-tag-version false
npm version "$NEW_TAG_NAME" --git-tag-version false
npm publish --tag=latest

0 comments on commit 9e1efca

Please sign in to comment.