Skip to content

Commit

Permalink
Make this module releaseable internally to the Spendesk organisation
Browse files Browse the repository at this point in the history
- Move from yarn to npm
- Rename package to `@spendesk/prettier-plugin-import-sort`
- Add Github workflows
- Bump version
  • Loading branch information
rgs committed Oct 13, 2023
1 parent 637041a commit 6e8c41d
Show file tree
Hide file tree
Showing 6 changed files with 6,256 additions and 2,523 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Release
on:
push:
tags:
- v*
jobs:
release:
permissions:
contents: write
pull-requests: write
id-token: write
packages: write
runs-on: ubuntu-latest
steps:
- name: Release action
uses: Spendesk/common-github-actions/spendesk-release@main
with:
skip-checks: false
dual-publish: false
use-semantic-release: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
19 changes: 19 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Build and test
on:
pull_request:
branches:
- master
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- id: setup-node
uses: actions/setup-node@v3
with:
node-version-file: package.json
- run: npm ci
- run: npm test
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
//npm.pkg.github.com/:_authToken=${GH_TOKEN}
@spendesk:registry=https://npm.pkg.github.com
Loading

0 comments on commit 6e8c41d

Please sign in to comment.