mirror of
https://github.com/Thream/socketio-jwt.git
synced 2024-07-21 09:38:31 +02:00
31 lines
767 B
YAML
31 lines
767 B
YAML
# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
|
|
|
|
name: 'Node.js Package'
|
|
|
|
on:
|
|
release:
|
|
types: [created]
|
|
|
|
jobs:
|
|
publish-npm:
|
|
runs-on: 'ubuntu-latest'
|
|
steps:
|
|
- uses: 'actions/checkout@v2'
|
|
|
|
- name: 'Cache dependencies'
|
|
uses: 'actions/cache@v2.1.4'
|
|
with:
|
|
path: '**/node_modules'
|
|
key: ${{ runner.os }}-${{ hashFiles('**/package.json') }}
|
|
|
|
- uses: 'actions/setup-node@v2.1.5'
|
|
with:
|
|
node-version: 14
|
|
registry-url: 'https://registry.npmjs.org/'
|
|
|
|
- run: 'npm install'
|
|
- run: 'npm run build'
|
|
- run: 'npm publish --access public'
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
|