Skip to content

Commit

Permalink
adding npm deploy action
Browse files Browse the repository at this point in the history
  • Loading branch information
2amjsouza committed Oct 30, 2024
1 parent 58c8b82 commit 82a4016
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/npm_deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: publish

on:
release:
types: [published]

permissions:
contents: read

jobs:
test:
name: NPM Publish
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
timeout-minutes: 10
steps:
- name: Checkout reqpo
uses: actions/checkout@v4
with:
fetch_depth: 0

- name: Install Node
uses: actions/setup-node@v4
with:
node_version: 16
registry-url: https://registry.npmjs.org/

- name: Install Dependencies
run: npm install
shell: bash

- name: Print env info
run: npx nx report
shell: bash

- name: Publish packages
run: npx nx release publish
shell: bash
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_DEPLOY_TOKEN }}
NPM_CONFIG_PROVENANCE: true

0 comments on commit 82a4016

Please sign in to comment.