Skip to content

Commit

Permalink
chore(actions): configure publish
Browse files Browse the repository at this point in the history
  • Loading branch information
luancurti committed Jan 27, 2023
1 parent 80e8894 commit c1e3b0b
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 4 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Publish

on:
release:
types: [published]

jobs:
publish:
runs-on: ubuntu-latest
name: Publish
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://registry.npmjs.org/'
- name: Install
run: yarn install
# Publish to npm
- name: Publish
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: 'https://npm.pkg.github.com'
scope: '@platformbuilders'
# Publish to GitHub Packages
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
{
"name": "eslint-config-builders",
"name": "@platformbuilders/eslint-config-builders",
"version": "0.1.0",
"description": "Builders eslint config",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"files": [
"package.json",
"index.js",
"README.md"
],
"dependencies": {
"@babel/core": "^7.20.12",
"@typescript-eslint/eslint-plugin": "^5.48.1",
Expand Down

0 comments on commit c1e3b0b

Please sign in to comment.