Skip to content

Commit

Permalink
Update publish pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
leroykorterink committed Feb 7, 2025
1 parent e608f03 commit ca7de21
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 71 deletions.
71 changes: 0 additions & 71 deletions .github/workflows/bump-version-and-publish.yml

This file was deleted.

File renamed without changes.
26 changes: 26 additions & 0 deletions .github/workflows/publish-on-release-created.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish package to npmjs
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
on:
release:
types: [created]
jobs:
bump-version:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Check out source
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: lts/*
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies and build
run: |
npm ci
npm run build
- name: Publish
run: npm publish --provenance

0 comments on commit ca7de21

Please sign in to comment.