-
Notifications
You must be signed in to change notification settings - Fork 61
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
release: Split draft and NPM release workflows. (#1289)
- Loading branch information
Showing
2 changed files
with
23 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
name: NPM Release | ||
on: | ||
workflow_dispatch: | ||
release: | ||
types: | ||
- published | ||
jobs: | ||
npm_release: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Checkout code" | ||
uses: actions/checkout@v4 | ||
- name: "Fetch unshallow repo" | ||
run: git fetch --prune --unshallow | ||
- name: Update npm packages to latest version | ||
working-directory: ./npm/@fastly/cli | ||
run: npm install && npm version "${{ github.ref_name }}" --allow-same-version | ||
- name: Publish npm packages | ||
working-directory: ./npm/@fastly | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
run: for dir in *; do (echo $dir && cd $dir && npm publish); done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters