Skip to content

Commit

Permalink
update yml
Browse files Browse the repository at this point in the history
  • Loading branch information
appsaeed committed May 22, 2024
1 parent 210bb89 commit 888e864
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
16 changes: 8 additions & 8 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Node.js Package

on:

workflow_dispatch:

push:
Expand Down Expand Up @@ -40,15 +40,15 @@ jobs:
- run: npm run build
- run: |
node <<EOF
import fs from 'fs';
import pkg from './package.json' assert { type: 'json' };
const _content = {...pkg, name: '@appsaeed/utilies'};
fs.writeFile('package.json', JSON.stringify(_content), 'utf-8',(err)=>{
if(err) {
const fs = require('fs');
const pkg = require('./package.json');
const _content = { ...pkg, name: '@appsaeed/utilies' };
fs.writeFile('package.json', JSON.stringify(_content), 'utf-8', (err) => {
if (err) {
console.warn(err)
process.exit(0);
};
})
};
})
EOF
- run: npm publish --access public
env:
Expand Down
9 changes: 0 additions & 9 deletions main.js

This file was deleted.

0 comments on commit 888e864

Please sign in to comment.