Skip to content

Commit

Permalink
Merge pull request #183 from onebeyond/cd-action
Browse files Browse the repository at this point in the history
Modify cd action
  • Loading branch information
inigomarquinez authored Jan 31, 2024
2 parents f668f95 + 56e4817 commit 1e0744e
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 41 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: NPM Publish

on:
release:
types: [ created ]

permissions: # added using https://github.com/step-security/secure-workflows
contents: read

jobs:
publish-npm:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write

steps:
- name: 🔐 Harden Runner
uses: step-security/harden-runner@eb238b55efaa70779f274895e782ed17c84f2895 # v2.6.1
with:
disable-sudo: true
egress-policy: block
allowed-endpoints: >
github.com:443
registry.npmjs.org:443
api.github.com:443
nodejs.org:443
- name: ⚙️ Git Checkout
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1

- name: ⚙️ Install Node versions
uses: actions/setup-node@b39b52d1213e96004bfcb1c61a8a6fa8ab84f3e8 # v4.0.1
with:
node-version: 20
registry-url: https://registry.npmjs.org

- name: ⚙️ Install NPM last version
run: npm install -g npm

- name: ⚙️ Install dependencies
run: npm ci

- name: 📦 Publish in NPM registry
run: |
npm publish --provenance --ignore-scripts --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_GUIDESMITHS }}
25 changes: 0 additions & 25 deletions .github/workflows/publish-plugin.yml

This file was deleted.

28 changes: 14 additions & 14 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "@onebeyond/react-form-builder",
"version": "3.6.1",
"version": "1.0.0",
"description": "React from builder using json schema",
"author": "Guidesmiths",
"author": "One Beyond",
"license": "MIT",
"repository": {
"type": "git",
Expand Down

0 comments on commit 1e0744e

Please sign in to comment.