Skip to content

Commit 0fd7efd

Browse files
committed
Fix publishing.
1 parent a153402 commit 0fd7efd

File tree

2 files changed

+9
-21
lines changed

2 files changed

+9
-21
lines changed

.github/workflows/nodejs.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -39,17 +39,18 @@ jobs:
3939
- name: Test
4040
run: yarn lint && yarn test
4141

42+
- name: Set up Node.js for publishing
43+
uses: actions/setup-node@v4
44+
with:
45+
node-version: 20
46+
registry-url: 'https://registry.npmjs.org'
47+
4248
- name: Deploy to NPM
4349
if: github.repository_owner == 'Authress-Engineering' && github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' && github.event_name == 'push'
44-
run: npm publish --access public
45-
env:
46-
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
50+
run: |
51+
npm install -g [email protected]
52+
npm publish --access public
4753
48-
- name: After build
49-
if: github.repository_owner == 'Authress-Engineering' && github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' && github.event_name == 'push'
50-
env:
51-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52-
run: node make.js after_build
5354
- name: Create Github Release and Tag
5455
if: github.repository_owner == 'Authress-Engineering' && github.ref != 'refs/heads/main' && github.ref != 'refs/heads/master' && github.event_name == 'push'
5556
run: |

make.js

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,6 @@ commander
4646
console.log('');
4747
});
4848

49-
/**
50-
* After Build
51-
*/
52-
commander
53-
.command('after_build')
54-
.description('Publishes git tags and reports failures.')
55-
.action(() => {
56-
const package_metadata = require('./package.json');
57-
console.log('After build package %s (%s)', package_metadata.name, version);
58-
console.log('');
59-
// githubActionsRunner.MergeDownstream('release/', 'main');
60-
});
61-
6249
commander.on('*', () => {
6350
if (commander.args.join(' ') === 'tests/**/*.js') {
6451
return;

0 commit comments

Comments
 (0)