Skip to content

Commit

Permalink
Move CI to Github Actions (#123)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdebbink authored Sep 23, 2024
1 parent 5f012a1 commit 328482c
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 16 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish

on:
push:
tags:
- 'v*'

permissions:
contents: read

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # 4.1.7
- name: Setup Node
uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # 4.0.3
with:
node-version-file: .nvmrc
cache: 'yarn'
- name: Publish
run: |
echo '//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}'>.npmrc
npm publish
11 changes: 0 additions & 11 deletions .gitlab-ci.yml

This file was deleted.

1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.16.0
6 changes: 1 addition & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,6 @@
b. switch to master branch and `git pull origin master`
c. create the tag: `git tag vx.x.xx` (replace with your version number)
d. push your tag: `git push origin vx.x.xx` (replace with your version number)
e. In gitlab, naviagte to the lint repo -> code -> tags and verify that your tag appears. This may take a few minutes
e. This will trigger the [Publish workflow](https://github.com/gamechanger/lint/actions/workflows/publish.yml) to push the new package.
4. In Eden, you can now update `@gamechanger/eslint-plugin` with the appropriate version number
---

[Lint Repo Gitlab](https://gitlab.com/gc.com/lint)

[Lint Tags](https://gitlab.com/gc.com/lint/-/tags)

0 comments on commit 328482c

Please sign in to comment.