Skip to content

Commit

Permalink
chore: add release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
mauriciomutte committed Apr 22, 2023
1 parent 22125c6 commit 30b017d
Show file tree
Hide file tree
Showing 2 changed files with 82 additions and 44 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Release
on:
push:
branches:
- main

permissions:
contents: read # for checkout

jobs:
release:
name: Release
runs-on: ubuntu-latest
permissions:
contents: write # to be able to publish a GitHub release
issues: write # to be able to comment on released issues
pull-requests: write # to be able to comment on released pull requests
id-token: write # to enable use of OIDC for npm provenance
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
- name: Install dependencies
run: npm clean-install
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run semantic-release -- --branches main
90 changes: 46 additions & 44 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,46 +1,48 @@
{
"name": "track-correios",
"type": "module",
"version": "1.0.4",
"keywords": [
"correios",
"track",
"terminal"
],
"homepage": "https://github.com/mauriciomutte/track-correios",
"repository": "[email protected]:mauriciomutte/track-correios.git",
"license": "MIT",
"author": {
"name": "Maurício Mutte",
"email": "[email protected]"
},
"main": "dist/bin.js",
"bin": "dist/bin.js",
"scripts": {
"ts": "tsc -p tsconfig.json --noEmit",
"prebuild": "rimraf dist",
"build": "tsc -p tsconfig.json",
"start": "ts-node-esm --experimental-specifier-resolution=node src/bin.ts",
"test": "jest"
},
"dependencies": {
"axios": "^1.3.5",
"chalk": "^5.2.0"
},
"devDependencies": {
"@types/jest": "^29.5.0",
"@types/node": "^18.15.11",
"eslint": "^8.38.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^29.5.0",
"prettier": "^2.8.7",
"rimraf": "^5.0.0",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
"typescript": "^5.0.4"
},
"preferGlobal": true
"name": "track-correios",
"type": "module",
"version": "0.0.0-development",
"keywords": [
"correios",
"track",
"terminal"
],
"homepage": "https://github.com/mauriciomutte/track-correios",
"repository": "[email protected]:mauriciomutte/track-correios.git",
"license": "MIT",
"author": {
"name": "Maurício Mutte",
"email": "[email protected]"
},
"main": "dist/bin.js",
"bin": "dist/bin.js",
"scripts": {
"ts": "tsc -p tsconfig.json --noEmit",
"prebuild": "rimraf dist",
"build": "tsc -p tsconfig.json",
"start": "ts-node-esm --experimental-specifier-resolution=node src/bin.ts",
"test": "jest",
"semantic-release": "semantic-release"
},
"dependencies": {
"axios": "^1.3.5",
"chalk": "^5.2.0"
},
"devDependencies": {
"@types/jest": "^29.5.0",
"@types/node": "^18.15.11",
"eslint": "^8.38.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-import": "^2.27.5",
"eslint-plugin-prettier": "^4.2.1",
"jest": "^29.5.0",
"prettier": "^2.8.7",
"rimraf": "^5.0.0",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
"typescript": "^5.0.4",
"semantic-release": "^21.0.1"
},
"preferGlobal": true
}

0 comments on commit 30b017d

Please sign in to comment.