Skip to content

Commit

Permalink
ci: add semantic release
Browse files Browse the repository at this point in the history
  • Loading branch information
tiagoporto committed Jan 11, 2025
1 parent ebd8a9c commit ad96255
Show file tree
Hide file tree
Showing 5 changed files with 8,930 additions and 3,495 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Release Package

on: workflow_dispatch

jobs:
# checks:
# uses: ./.github/workflows/checks.yml
# secrets: inherit

publish-npm:
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
# needs: [checks]
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup node
uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
registry-url: https://registry.npmjs.org/

- name: Install Dependencies
run: npm ci --ignore-scripts

- name: Release package
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
NPM_CONFIG_PROVENANCE: true
run: npm run release
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
access=public
Loading

0 comments on commit ad96255

Please sign in to comment.