Skip to content

Commit

Permalink
Merge branch 'main' into next
Browse files Browse the repository at this point in the history
  • Loading branch information
diegopf committed Sep 3, 2024
2 parents 7a86315 + bec9fd9 commit 71a38d6
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 19 deletions.
7 changes: 0 additions & 7 deletions .github/actions/release-alpha/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,6 @@ inputs:
runs:
using: 'composite'
steps:
- name: Configure git user
run: |
git config --local user.email "[email protected]"
git config --local user.name "empathy/x"
shell: bash

- name: Configure npm auth
run: |
npm config set registry="https://registry.npmjs.org/"
Expand All @@ -33,6 +27,5 @@ runs:
- name: Push tags
uses: ad-m/github-push-action@master
with:
github_token: ${{ inputs.github_token }}
branch: ${{ github.ref }}
tags: true
10 changes: 0 additions & 10 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,9 @@ jobs:
runs-on: ubuntu-latest

steps:
# Use GitHub App token as a workaround to allow bypassing branch-protection rules
# https://github.com/orgs/community/discussions/13836#discussioncomment-8535364
- uses: actions/create-github-app-token@v1
id: app-token
with:
app-id: ${{ vars.GH_TOKENS_APP_ID }}
private-key: ${{ secrets.GH_TOKENS_APP_PRIVATE_KEY }}

- name: checkout repository
uses: actions/checkout@v4
with:
token: ${{ steps.app-token.outputs.token }}
fetch-depth: 0

- name: Install
Expand All @@ -42,4 +33,3 @@ jobs:
uses: ./.github/actions/release-alpha
with:
npm_token: ${{ secrets.NPM_TOKEN_GRANULAR_ACCESS }}
github_token: ${{ steps.app-token.outputs.token }}
10 changes: 8 additions & 2 deletions .github/workflows/release-alpha.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
name: Release alpha version on demand
on: [workflow_dispatch]
on:
workflow_dispatch:
inputs:
branch:
description: 'Branch to release from'
required: true
default: 'main'
jobs:
release-alpha:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -35,5 +41,5 @@ jobs:
- name: execute release-alpha action
uses: ./.github/actions/release-alpha
with:
npm_token: ${{ secrets.NPM_TOKEN_GRANULAR_ACCESS }}
npm_token: ${{ secrets.NPM_TOKEN }}
github_token: ${{ steps.app-token.outputs.token }}

0 comments on commit 71a38d6

Please sign in to comment.