Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🔧 Update template #387

Merged
merged 2 commits into from
May 19, 2022
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Revert "ci: Remove GH_TOKEN and use GITHUB_TOKEN"
This reverts commit 4bf0005.

It just doesn't work.

# Conflicts:
#	.github/workflows/test-release.yml
sebbo2002 committed May 19, 2022
commit b5c2eb66170b38bda1e49ad5bb5cf02bd13eb8e4
2 changes: 1 addition & 1 deletion .github/workflows/is-semantic-pr.yml
Original file line number Diff line number Diff line change
@@ -9,4 +9,4 @@ jobs:
- name: 🤖 is-semantic-release
uses: sebbo2002/action-is-semantic-pr@develop
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GH_TOKEN }}
5 changes: 1 addition & 4 deletions .github/workflows/release-bot.yml
Original file line number Diff line number Diff line change
@@ -10,9 +10,6 @@ jobs:
release-bot:
runs-on: ubuntu-latest
if: ${{ github.repository != 'sebbo2002/js-template' }}
permissions:
contents: write
pull-requests: write
steps:
- name: ☁️ Checkout Project
uses: actions/checkout@v3
@@ -32,4 +29,4 @@ jobs:
- name: 🤖 Run ReleaseBot
uses: ./.actions/release-bot
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GH_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/stale-issues.yml
Original file line number Diff line number Diff line change
@@ -10,7 +10,7 @@ jobs:
- name: 🧹 Cleanup issues & pull requests
uses: actions/stale@v5
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
repo-token: ${{ secrets.GH_TOKEN }}
stale-issue-message: |
This issue has been automatically marked as stale because it has not had recent activity :sleeping:
It will be closed in 14 days if no further activity occurs. To unstale this issue, add a comment with detailed explanation.
5 changes: 1 addition & 4 deletions .github/workflows/template-updater.yml
Original file line number Diff line number Diff line change
@@ -8,13 +8,10 @@ jobs:
TemplateUpdater:
runs-on: ubuntu-latest
if: ${{ github.repository != 'sebbo2002/js-template' }}
permissions:
contents: write
pull-requests: write
steps:
- name: 🤖 is-semantic-release
uses: sebbo2002/action-template-updater@develop
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GH_TOKEN }}
template: sebbo2002/js-template
assignees: sebbo2002
12 changes: 3 additions & 9 deletions .github/workflows/test-release.yml
Original file line number Diff line number Diff line change
@@ -70,12 +70,6 @@ jobs:
- tests
- license-checker
if: ${{ github.repository != 'sebbo2002/js-template' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/develop') }}
permissions:
contents: write
issues: write
pull-requests: write
packages: write
pages: write
steps:
- name: ☁️ Checkout Project
uses: actions/checkout@v3
@@ -91,17 +85,17 @@ jobs:
run: BRANCH=${GITHUB_REF#refs/heads/} npx semantic-release
env:
GH_REPO: ${{ github.repository }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
GH_OWNER: ${{ github.repository_owner }}
GITHUB_NPM_CONFIG_REGISTRY: https://npm.pkg.github.com/
GITHUB_NPM_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_NPM_TOKEN: ${{ secrets.GH_TOKEN }}
PUBLIC_NPM_CONFIG_REGISTRY: https://registry.npmjs.org
PUBLIC_NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: 🔃 Merge main back into develop
if: ${{ github.ref == 'refs/heads/main' }}
uses: everlytic/branch-merge@1.1.2
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
github_token: ${{ secrets.GH_TOKEN }}
source_ref: 'main'
target_branch: 'develop'
commit_message_template: 'Merge branch {source_ref} into {target_branch} [skip ci]'