Skip to content

Commit

Permalink
Testing npm publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
troychaplin committed Feb 24, 2024
1 parent cee5d76 commit a013bc9
Showing 1 changed file with 12 additions and 20 deletions.
32 changes: 12 additions & 20 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,34 +1,26 @@
name: Publish to NPM

on:
push:
branches:
- develop

# on:
# push:
# tags:
# - "*"

on:
push:
branches:
- develop

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/

- name: Install dependencies
run: npm install

- name: Build package
run: npm run build

- name: Publish package
run: npm run publish --access public
node-version: 21.x
registry-url: https://registry.npmjs.org
- run: npm install
- run: npm run build
- run: npm run publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit a013bc9

Please sign in to comment.