forked from ajaxorg/ace
-
Notifications
You must be signed in to change notification settings - Fork 4
25 lines (24 loc) · 756 Bytes
/
Copy pathpublish.yml
File metadata and controls
25 lines (24 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Publish to NPM
on:
push:
tags:
- v*
workflow_dispatch:
permissions:
id-token: write # Required for OIDC
contents: read # to fetch code (actions/checkout)
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
- run: npm install
- run: npm run test
- run: npm publish