-
Notifications
You must be signed in to change notification settings - Fork 118
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: disable auto release until #557 implemented
- Loading branch information
1 parent
eb7c88e
commit 8bd44be
Showing
1 changed file
with
57 additions
and
57 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 |
---|---|---|
@@ -1,60 +1,60 @@ | ||
--- | ||
name: Release | ||
# --- | ||
# name: Release | ||
|
||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'src/**' | ||
- 'test/**' | ||
- 'scripts/**' | ||
- 'public/**' | ||
- 'packages/**' | ||
- 'package.json' | ||
- 'package-lock.json' | ||
# on: | ||
# workflow_dispatch: | ||
# push: | ||
# branches: | ||
# - main | ||
# paths: | ||
# - 'src/**' | ||
# - 'test/**' | ||
# - 'scripts/**' | ||
# - 'public/**' | ||
# - 'packages/**' | ||
# - 'package.json' | ||
# - 'package-lock.json' | ||
|
||
permissions: | ||
contents: read | ||
# permissions: | ||
# contents: read | ||
|
||
jobs: | ||
create_github_release: | ||
outputs: | ||
full-tag: ${{ steps.release-drafter.outputs.tag_name }} | ||
short-tag: ${{ steps.get_tag_name.outputs.SHORT_TAG }} | ||
body: ${{ steps.release-drafter.outputs.body }} | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
pull-requests: read | ||
steps: | ||
- uses: release-drafter/release-drafter@v6 | ||
id: release-drafter | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
publish: true | ||
- name: Get the short tag | ||
id: get_tag_name | ||
run: | | ||
short_tag=$(echo ${{ steps.release-drafter.outputs.tag_name }} | cut -d. -f1) | ||
echo "SHORT_TAG=$short_tag" >> $GITHUB_OUTPUT | ||
create_npm_release: | ||
needs: create_github_release | ||
runs-on: ubuntu-latest | ||
permissions: | ||
packages: write | ||
env: | ||
REGISTRY: ghcr.io | ||
IMAGE_NAME: ${{ github.repository }} | ||
steps: | ||
- uses: actions/checkout@8459bc0 # v4 | ||
- uses: actions/setup-node@c2ac33f # v4, Setup .npmrc file to publish to npm | ||
with: | ||
node-version: '18.x' | ||
registry-url: 'https://registry.npmjs.org' | ||
- run: npm ci | ||
- run: npm publish --access=public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
# jobs: | ||
# create_github_release: | ||
# outputs: | ||
# full-tag: ${{ steps.release-drafter.outputs.tag_name }} | ||
# short-tag: ${{ steps.get_tag_name.outputs.SHORT_TAG }} | ||
# body: ${{ steps.release-drafter.outputs.body }} | ||
# runs-on: ubuntu-latest | ||
# permissions: | ||
# contents: write | ||
# pull-requests: read | ||
# steps: | ||
# - uses: release-drafter/release-drafter@v6 | ||
# id: release-drafter | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# with: | ||
# publish: true | ||
# - name: Get the short tag | ||
# id: get_tag_name | ||
# run: | | ||
# short_tag=$(echo ${{ steps.release-drafter.outputs.tag_name }} | cut -d. -f1) | ||
# echo "SHORT_TAG=$short_tag" >> $GITHUB_OUTPUT | ||
# create_npm_release: | ||
# needs: create_github_release | ||
# runs-on: ubuntu-latest | ||
# permissions: | ||
# packages: write | ||
# env: | ||
# REGISTRY: ghcr.io | ||
# IMAGE_NAME: ${{ github.repository }} | ||
# steps: | ||
# - uses: actions/checkout@8459bc0 # v4 | ||
# - uses: actions/setup-node@c2ac33f # v4, Setup .npmrc file to publish to npm | ||
# with: | ||
# node-version: '18.x' | ||
# registry-url: 'https://registry.npmjs.org' | ||
# - run: npm ci | ||
# - run: npm publish --access=public | ||
# env: | ||
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |