Skip to content

Release

Release #14

Workflow file for this run

name: Release
on:
workflow_dispatch:
permissions:
contents: write
issues: write
pull-requests: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Generate Token
uses: npalm/action-app-token@v1.1.0
id: app-token
with:
appId: ${{ secrets.APP_ID }}
appPrivateKeyBase64: ${{ secrets.PRIVATE_KEY }}
appInstallationType: repo
appInstallationValue: ${{ github.repository }}
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: ./.node-version
- name: Install Dependencies
run: npm install
- name: debug
run: |
TOKEN="${{ steps.app-token.outputs.token }}"
curl -H "Authorization: token $TOKEN" -H "Accept: application/vnd.github.v3+json" https://api.github.com/repos/moneyforward/eslint-config-moneyforward
- name: Release
run: npm run release -- --repositoryUrl https://x-access-token:$GITHUB_TOKEN@github.com/$GITHUB_REPOSITORY.git
env:
GITHUB_ACTION: yes
GITHUB_REPOSITORY: ${{ github.repository }}
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}