Skip to content

Commit

Permalink
Add release workflow
Browse files Browse the repository at this point in the history
jozefizso committed Dec 28, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature.
1 parent e08a94d commit e63a833
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: release

permissions:
contents: read
id-token: write

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest

environment:
name: production
url: https://www.npmjs.com/package/generator-license

steps:
- name: checkout
uses: actions/checkout@v4

- name: setup node
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org'

- name: npm ci
run: npm ci

- name: npm publish
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}

0 comments on commit e63a833

Please sign in to comment.