Skip to content

Commit

Permalink
Merge pull request #4 from cabinetoffice/feature/NTRNL-231-add-packag…
Browse files Browse the repository at this point in the history
…e-publisher-configuration

Add package publisher to npmjs configuration
  • Loading branch information
Mouhajer-CO authored Nov 30, 2023
2 parents aa2d02c + cfc4a4c commit c21a8cf
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/package-publisher.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Publish Package to npmjs

on:
push:
branches:
- main

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Bump version
run: npm version patch
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit c21a8cf

Please sign in to comment.