2
1
mirror of https://github.com/Thream/socketio-jwt.git synced 2024-07-21 09:38:31 +02:00
socketio-jwt/.github/workflows/release.yml

40 lines
898 B
YAML
Raw Normal View History

2021-07-23 23:15:52 +02:00
name: 'Release'
2020-12-27 18:42:48 +01:00
on:
2021-07-23 23:15:52 +02:00
push:
branches: [master]
2020-12-27 18:42:48 +01:00
jobs:
2021-07-23 23:15:52 +02:00
release:
2020-12-27 18:42:48 +01:00
runs-on: 'ubuntu-latest'
permissions:
contents: 'write'
issues: 'write'
pull-requests: 'write'
id-token: 'write'
2020-12-27 18:42:48 +01:00
steps:
2023-07-02 18:10:38 +02:00
- uses: 'actions/checkout@v3.5.3'
2020-12-27 18:42:48 +01:00
2023-05-13 19:25:45 +02:00
- name: 'Setup Node.js'
uses: 'actions/setup-node@v3.6.0'
2021-03-08 14:33:53 +01:00
with:
node-version: '20.x'
cache: 'npm'
2021-03-08 14:33:53 +01:00
2023-05-13 19:25:45 +02:00
- name: 'Install dependencies'
run: 'npm clean-install'
2021-03-08 14:33:53 +01:00
2021-07-23 23:15:52 +02:00
- name: 'Build Package'
2021-03-08 14:33:53 +01:00
run: 'npm run build'
2020-12-27 18:42:48 +01:00
- run: 'npm run build:typescript'
- name: 'Verify the integrity of provenance attestations and registry signatures for installed dependencies'
run: 'npm audit signatures'
2021-07-23 23:15:52 +02:00
- name: 'Release'
run: 'npm run release'
2020-12-27 18:42:48 +01:00
env:
2021-07-23 23:15:52 +02:00
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}