Skip to content

fix: try release

fix: try release #23

Workflow file for this run

# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
#
name: Release
on:
push:
branches:
- main
- next
- ^release\/[0-9]+(.[0-9]+)?.x$
jobs:
build:
runs-on: ubuntu-latest
permissions:
id-token: write # to enable use of OIDC for npm provenance
contents: write
steps:
- name: Generate token
id: generate_token
uses: tibdex/github-app-token@v2
with:
app_id: ${{ secrets.IGOBOT_APP_ID }}
private_key: ${{ secrets.IGOBOT_PRIVATE_KEY }}
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ steps.generate_token.outputs.token }}
persist-credentials: false
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies
run: npm ci
# - name: Security
# run: npm audit --omit dev && npm audit signatures
# - name: Quality
# run: npm run circular-deps & npm run lint
# - name: Test
# run: npm run test
- name: Release
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
run: npm run release