Skip to content

Commit

Permalink
Add a GitHub Packages publish action
Browse files Browse the repository at this point in the history
  • Loading branch information
e-adrien committed Feb 1, 2024
1 parent d7e5c34 commit efe3a00
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/gh-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish Package to GitHub Packages

on:
release:
types: [created]

jobs:
publish:
name: Publish Package to GitHub Packages
runs-on: ubuntu-latest

permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v4

- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: "20"
registry-url: "https://npm.pkg.github.com"
scope: "@lesjoursfr"

- run: npm install

- run: npm run build

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit efe3a00

Please sign in to comment.